class StumpyPNG::PNG

Defined in:

stumpy_png/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 : 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(StumpyCore::RGBA) #

[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 parsed : Bool #

[View source]
def to_canvas_adam7 #

[View source]
def to_canvas_none #

[View source]
def width : Int32 #

[View source]