mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
PixelPaint: Add antialiased ellipse option
Currently this option is only supported for filled ellipses as that is all the AntiAliasingPainter supports.
This commit is contained in:
parent
60aba4c9f3
commit
89445b967d
2 changed files with 28 additions and 8 deletions
|
@ -32,6 +32,7 @@ private:
|
|||
enum class FillMode {
|
||||
Outline,
|
||||
Fill,
|
||||
FillAntiAliased
|
||||
};
|
||||
|
||||
enum class DrawMode {
|
||||
|
@ -50,6 +51,7 @@ private:
|
|||
Gfx::IntPoint m_ellipse_end_position;
|
||||
int m_thickness { 1 };
|
||||
FillMode m_fill_mode { FillMode::Outline };
|
||||
bool m_last_aa_checkbox_state { false };
|
||||
DrawMode m_draw_mode { DrawMode::FromCorner };
|
||||
Optional<float> m_aspect_ratio;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue