Offers capabilities to encode and decode BMP format. More...
Static Public Member Functions | |
static nkMemory::Buffer | encode (const ImageView &image) |
static bool | canDecode (nkMemory::BufferView< unsigned char > data) |
static Image | decode (nkMemory::BufferView< unsigned char > data, const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor()) |
Offers capabilities to encode and decode BMP format.
|
static |
Encodes an image into a binary buffer fitting the BMP format.
image | The image to encode. |
|
static |
Checks whether a binary buffer can be decoded by this encoder. This checks the file header for the magic bytes.
data | The binary data which need to be checked. |
|
static |
Decodes a binary buffer into its image representation.
Currently supported compressions are :
Unsupported compressions are :
data | The binary buffer to decode. |
alignmentDescriptor | If decoded image's data needs to fit some alignment requirements, they can be specified through this parameter. |