summaryrefslogtreecommitdiff
path: root/SharedGraphics/Painter.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-22 04:20:10 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-22 04:20:10 +0100
commit86570d3b1ac8af8dbc9d362cf3f1c49d69981f61 (patch)
treed78d977e5f062260131df3facaa65acb99d7b6df /SharedGraphics/Painter.h
parente4498194c2fb40acf438589c6115bf5588dacbef (diff)
downloadserenity-86570d3b1ac8af8dbc9d362cf3f1c49d69981f61.zip
SharedGraphics: Add Painter::draw_scaled_bitmap().
It's just a simple nearest-neighbor scale with alpha blending but it gets the job done.
Diffstat (limited to 'SharedGraphics/Painter.h')
-rw-r--r--SharedGraphics/Painter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/SharedGraphics/Painter.h b/SharedGraphics/Painter.h
index fd2b2ca44a..a9485c5e1f 100644
--- a/SharedGraphics/Painter.h
+++ b/SharedGraphics/Painter.h
@@ -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);