1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:27:34 +00:00

LibGfx: Add AntiAliasingPainter::fill_rect

This function is able to draw rectangles of floating-point pixel
precision.
This commit is contained in:
MacDue 2022-08-18 11:23:07 +01:00 committed by Linus Groh
parent 049c1a536c
commit f9b08272db
2 changed files with 49 additions and 0 deletions

View file

@ -35,6 +35,8 @@ public:
AlphaSubtract
};
void fill_rect(FloatRect const&, Color);
void fill_circle(IntPoint const& center, int radius, Color, BlendMode blend_mode = BlendMode::Normal);
void fill_ellipse(IntRect const& a_rect, Color, BlendMode blend_mode = BlendMode::Normal);