mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
|
@ -25,11 +25,13 @@ struct BMPWriterOptions {
|
|||
class BMPWriter {
|
||||
public:
|
||||
using Options = BMPWriterOptions;
|
||||
BMPWriter() = default;
|
||||
|
||||
ByteBuffer dump(RefPtr<Bitmap const>, Options options = Options {});
|
||||
static ErrorOr<ByteBuffer> encode(Bitmap const&, Options options = Options {});
|
||||
|
||||
private:
|
||||
BMPWriter() = default;
|
||||
|
||||
ByteBuffer dump(RefPtr<Bitmap const>, Options options);
|
||||
|
||||
enum class Compression : u32 {
|
||||
BI_RGB = 0,
|
||||
BI_BITFIELDS = 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue