mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
PixelPaint: Ensure layers are positioned correctly when painting
Previously, layer bitmaps could move slightly relative to their boundary and the image background when panning and zooming.
This commit is contained in:
parent
607c8045dc
commit
4be6ee85e0
3 changed files with 9 additions and 10 deletions
|
@ -69,7 +69,7 @@ public:
|
|||
ErrorOr<NonnullRefPtr<Image>> take_snapshot() const;
|
||||
ErrorOr<void> restore_snapshot(Image const&);
|
||||
|
||||
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect) const;
|
||||
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect, float scale) const;
|
||||
|
||||
ErrorOr<void> serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const;
|
||||
ErrorOr<void> export_bmp_to_file(NonnullOwnPtr<AK::Stream>, bool preserve_alpha_channel) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue