class

Crowbar::Rules::BMPRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for Windows Bitmap (BMP) files. Preserves the 14-byte BITMAPFILEHEADER ("BM") and DIB header framing, while mutating dimensions, bit depths, compression schemes, color palettes, and pixel raster data, and automatically synchronizing file size and raster offsets.

Instance methods

apply(context : Context, buffer : Buffer) : Bool

Applies a structure-preserving transformation to the buffer

Source
description
Source
match?(buffer : Buffer) : Bool

Checks whether the buffer matches the format handled by this rule

Source
name
Source