mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
SharedGraphics: Add Painter::draw_scaled_bitmap().
It's just a simple nearest-neighbor scale with alpha blending but it gets the job done.
This commit is contained in:
parent
e4498194c2
commit
86570d3b1a
2 changed files with 39 additions and 0 deletions
|
@ -32,6 +32,7 @@ public:
|
|||
void set_pixel(const Point&, Color);
|
||||
void draw_line(const Point&, const Point&, Color);
|
||||
void draw_focus_rect(const Rect&);
|
||||
void draw_scaled_bitmap(const Rect& dst_rect, const GraphicsBitmap&, const Rect& src_rect);
|
||||
void blit(const Point&, const GraphicsBitmap&, const Rect& src_rect);
|
||||
void blit_with_opacity(const Point&, const GraphicsBitmap&, const Rect& src_rect, float opacity);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue