1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:47:35 +00:00

LibGfx: Add scaling methods to Bitmap

This commit is contained in:
Matthew Olsson 2021-04-20 12:40:03 -07:00 committed by Andreas Kling
parent 4233b69ecf
commit 790908ffc3
2 changed files with 111 additions and 0 deletions

View file

@ -115,6 +115,8 @@ public:
RefPtr<Gfx::Bitmap> rotated(Gfx::RotationDirection) const;
RefPtr<Gfx::Bitmap> flipped(Gfx::Orientation) const;
RefPtr<Gfx::Bitmap> scaled(int sx, int sy) const;
RefPtr<Gfx::Bitmap> scaled(float sx, float sy) const;
RefPtr<Bitmap> to_bitmap_backed_by_anon_fd() const;
ByteBuffer serialize_to_byte_buffer() const;