class BMP::Bpp1Decoder

Defined in:

decode.cr

Constant Summary

DATA = [DATA_0, DATA_1]
DATA_0 = Bytes.new(1, 0_u8)
DATA_1 = Bytes.new(1, 0_u8)

Instance Method Summary

Instance methods inherited from class BMP::Decoder

color(x, y, color : Int32)
color(x, y, color : Color)
color(x, y) : Color
color
, data(x, y, d : Bytes)
data(x, y) : Bytes
data
, offset(x, y) offset

Constructor methods inherited from class BMP::Decoder

new(bmp : BMP) new

Class methods inherited from class BMP::Decoder

build(bmp : BMP) build

Instance Method Detail

def color(x, y, color : Int32) #
Description copied from class BMP::Decoder

Set the pixel color


[View source]
def color(x, y) : Color #
Description copied from class BMP::Decoder

Return the pixel color


[View source]
def data(x, y, d : Bytes) #
Description copied from class BMP::Decoder

Set abstract representation of the pixel data


[View source]
def data(x, y) : Bytes #
Description copied from class BMP::Decoder

Return an abstract representation of the pixel data


[View source]