ladybird/Userland/Libraries/LibGfx/BMPWriter.h
Brian Gianforcaro 1682f0b760 Everything: Move to SPDX license identifiers in all files.
SPDX License Identifiers are a more compact / standardized
way of representing file license information.

See: https://spdx.dev/resources/use/#identifiers

This was done with the `ambr` search and replace tool.

 ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00

32 lines
498 B
C++

/*
* Copyright (c) 2020, Ben Jilks <benjyjilks@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
namespace Gfx {
class Bitmap;
class BMPWriter {
public:
BMPWriter() = default;
ByteBuffer dump(const RefPtr<Bitmap>);
enum class Compression : u32 {
RGB = 0,
};
inline void set_compression(Compression compression) { m_compression = compression; }
private:
Compression m_compression { Compression::RGB };
};
}