Module: ZPNG
- Defined in:
- lib/zpng/block.rb,
lib/zpng/chunk.rb,
lib/zpng/color.rb,
lib/zpng/image.rb,
lib/zpng/scan_line.rb
Defined Under Namespace
Classes: Block, CLI, Chunk, Color, Image, ScanLine
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