class Imagecr::Handlers::BmpHandler

Overview

Parses width and height properties out a Bitmap image.

Defined in:

imagecr/handlers/bmp_handler.cr

Constant Summary

BITMAP_HEADERS = [UInt8.slice(66, 77), UInt8.slice(66, 65), UInt8.slice(67, 73), UInt8.slice(67, 80), UInt8.slice(73, 67), UInt8.slice(80, 84)]

Instance Method Summary

Instance methods inherited from class Imagecr::Handler

header_bytes : Slice(UInt8)? header_bytes, io : IO io, parse parse, parse_image parse_image, verify_remaining_header verify_remaining_header

Constructor methods inherited from class Imagecr::Handler

new(io : IO, header_bytes : Bytes | Nil = nil) new

Instance Method Detail

def parse_image #
Description copied from class Imagecr::Handler

Actual parsing implementation


[View source]
def verify_remaining_header #
Description copied from class Imagecr::Handler

Verifiy the rest of the header, that was not checked by Engine


[View source]