mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibGfx: Change BMPWriter API to be consistent with other image writers
This commit is contained in:
parent
01387eb72b
commit
f1a3028ef1
6 changed files with 15 additions and 12 deletions
|
@ -67,6 +67,11 @@ static ByteBuffer write_pixel_data(RefPtr<Bitmap const> bitmap, int pixel_row_da
|
|||
return buffer;
|
||||
}
|
||||
|
||||
ErrorOr<ByteBuffer> BMPWriter::encode(Bitmap const& bitmap, Options options)
|
||||
{
|
||||
return BMPWriter().dump(bitmap, options);
|
||||
}
|
||||
|
||||
ByteBuffer BMPWriter::compress_pixel_data(ByteBuffer const& pixel_data, BMPWriter::Compression compression)
|
||||
{
|
||||
switch (compression) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue