module Eagle::Codecs::BMP

Overview

Windows BMP decoding (24- and 32-bit, uncompressed or bitfields) and encoding.

Defined in:

eagle/assets/codecs/bmp.cr

Class Method Summary

Class Method Detail

def self.bmp?(data : Bytes) : Bool #

True when data starts with the BMP signature.


def self.decode(data : Bytes) : Image #

Decodes BMP bytes into an image.


def self.encode(img : Image) : Bytes #

Encodes an image as a 32-bit BMP.