class PNGUtil::PNG
- PNGUtil::PNG
- Reference
- Object
Defined in:
png_util/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 : PNGUtil::Canvas
- #color_type : UInt8
- #compression_method : UInt8
- #data : Slice(UInt8)
- #filter_method : UInt8
- #height : Int32
- #interlace_method : UInt8
- #palette : Array({r: UInt16, g: UInt16, b: UInt16, a: UInt16})
- #parse_chunk(chunk)
- #parse_idat(chunk : Chunk)
- #parse_iend(chunk : Chunk)
- #parse_ihdr(chunk : Chunk)
- #parse_plte(chunk : Chunk)
- #to_canvas_adam7
- #to_canvas_none
- #width : Int32