mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
PixelPaint: Cleanup the Image class
This patch just introduces some general cleanup regarding unused imports and adding the const qualifier to eligible functions and variables.
This commit is contained in:
parent
e89c649be1
commit
bd65ecf05c
4 changed files with 35 additions and 38 deletions
|
@ -48,7 +48,7 @@ class Image : public RefCounted<Image> {
|
|||
public:
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_with_size(Gfx::IntSize);
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_from_pixel_paint_json(JsonObject const&);
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_from_bitmap(NonnullRefPtr<Gfx::Bitmap>);
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_from_bitmap(NonnullRefPtr<Gfx::Bitmap> const&);
|
||||
|
||||
static ErrorOr<NonnullRefPtr<Gfx::Bitmap>> try_decode_bitmap(ReadonlyBytes);
|
||||
|
||||
|
@ -73,8 +73,8 @@ public:
|
|||
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect) const;
|
||||
|
||||
ErrorOr<void> serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const;
|
||||
ErrorOr<void> export_bmp_to_file(Core::File&, bool preserve_alpha_channel);
|
||||
ErrorOr<void> export_png_to_file(Core::File&, bool preserve_alpha_channel);
|
||||
ErrorOr<void> export_bmp_to_file(Core::File&, bool preserve_alpha_channel) const;
|
||||
ErrorOr<void> export_png_to_file(Core::File&, bool preserve_alpha_channel) const;
|
||||
ErrorOr<void> export_qoi_to_file(Core::File&) const;
|
||||
|
||||
void move_layer_to_front(Layer&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue