class StumpyPNG::PNG
- StumpyPNG::PNG
- Reference
- Object
Defined in:
stumpy_png/png.crConstant Summary
-
COLOR_TYPES =
{0 => {:grayscale, [1, 2, 4, 8, 16], 1}, 2 => {:rgb, [8, 16], 3}, 3 => {:palette, [1, 2, 4, 8], 1}, 4 => {:grayscale_alpha, [8, 16], 2}, 6 => {:rgb_alpha, [8, 16], 4}}
-
{ name, valid bit depths, "fields" per pixel }
-
INTERLACE_METHODS =
{0 => :no_interlace, 1 => :adam7}
Constructors
Instance Method Summary
- #bit_depth : UInt8
- #canvas : Canvas
- #color_type : UInt8
- #compression_method : UInt8
- #data : Slice(UInt8)
- #filter_method : UInt8
- #height : Int32
- #interlace_method : UInt8
- #palette : Array(StumpyCore::RGBA)
- #parse_chunk(chunk)
- #parse_IDAT(chunk : Chunk)
- #parse_IEND(chunk : Chunk)
- #parse_IHDR(chunk : Chunk)
- #parse_PLTE(chunk : Chunk)
- #parsed : Bool
- #to_canvas_adam7
- #to_canvas_none
- #width : Int32