mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGfx: Change BMPWriter API to be consistent with other image writers
This commit is contained in:
committed by
Jelle Raaijmakers
parent
01387eb72b
commit
f1a3028ef1
@@ -38,7 +38,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
|
||||
ByteBuffer bytes;
|
||||
if (out_path.ends_with(".bmp"sv, CaseSensitivity::CaseInsensitive)) {
|
||||
bytes = Gfx::BMPWriter().dump(frame);
|
||||
bytes = TRY(Gfx::BMPWriter::encode(*frame));
|
||||
} else if (out_path.ends_with(".png"sv, CaseSensitivity::CaseInsensitive)) {
|
||||
bytes = TRY(Gfx::PNGWriter::encode(*frame));
|
||||
} else if (out_path.ends_with(".qoi"sv, CaseSensitivity::CaseInsensitive)) {
|
||||
|
||||
Reference in New Issue
Block a user