class PNGUtil::PNG

Defined in:

png_util/png.cr

Constant 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

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def bit_depth : UInt8 #

[View source]
def canvas : PNGUtil::Canvas #

[View source]
def color_type : UInt8 #

[View source]
def compression_method : UInt8 #

[View source]
def data : Slice(UInt8) #

[View source]
def filter_method : UInt8 #

[View source]
def height : Int32 #

[View source]
def interlace_method : UInt8 #

[View source]
def palette : Array({r: UInt16, g: UInt16, b: UInt16, a: UInt16}) #

[View source]
def parse_chunk(chunk) #

[View source]
def parse_idat(chunk : Chunk) #

[View source]
def parse_iend(chunk : Chunk) #

[View source]
def parse_ihdr(chunk : Chunk) #

[View source]
def parse_plte(chunk : Chunk) #

[View source]
def to_canvas_adam7 #

[View source]
def to_canvas_none #

[View source]
def width : Int32 #

[View source]