Module: ZPNG

Defined in:
lib/zpng.rb,
lib/zpng/cli.rb,
lib/zpng/block.rb,
lib/zpng/chunk.rb,
lib/zpng/color.rb,
lib/zpng/image.rb,
lib/zpng/pixels.rb,
lib/zpng/hexdump.rb,
lib/zpng/metadata.rb,
lib/zpng/scan_line.rb,
lib/zpng/bmp/reader.rb,
lib/zpng/text_chunk.rb,
lib/zpng/adam7_decoder.rb,
lib/zpng/deep_copyable.rb,
lib/zpng/readable_struct.rb,
lib/zpng/scan_line/mixins.rb

Defined Under Namespace

Modules: BMP, DeepCopyable, Hexdump, ReadableStruct Classes: Adam7Decoder, ArgumentError, Block, CLI, Chunk, Color, Exception, Image, Metadata, NotSupported, Pixels, ScanLine, TextChunk

Constant Summary collapse

COLOR_GRAYSCALE =

put constants in the scope of ZPNG module to be able to create new images easily with include ZPNG img = Image.new :width => 16, :height => 16, :color => COLOR_RGB

0
COLOR_RGB =

Each pixel is a grayscale sample

2
COLOR_INDEXED =

Each pixel is an R,G,B triple.

3
COLOR_GRAY_ALPHA =

Each pixel is a palette index; a PLTE chunk must appear.

4
COLOR_RGBA =

Each pixel is a grayscale sample, followed by an alpha sample.

6