Module: RawImage

Includes:
GuiGeo
Included in:
Image
Defined in:
lib/raw_image.rb,
lib/raw_image/color.rb,
lib/raw_image/image.rb,
lib/raw_image/colors.rb,
lib/raw_image/version.rb,
lib/raw_image/color_formats.rb

Defined Under Namespace

Modules: Colors Classes: Color, Image

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.color_formatsObject

legal image formats and info about each format



3
4
5
6
7
8
9
# File 'lib/raw_image/color_formats.rb', line 3

def self.color_formats
  {
  :g8 => {:byte_size => 1, :bit_size => 8},     # single, monochrome channel
  :rgb8 => {:byte_size => 3, :bit_size => 24},  # red, green, blue, 8bits per channel
  :rgba8 => {:byte_size => 4, :bit_size => 32}, # red, green, blue, alpha 8bits per channel
  }
end

Instance Method Details

#color(*args) ⇒ Object



15
# File 'lib/raw_image.rb', line 15

def color(*args) Color.new *args; end

#image(*args) ⇒ Object



16
# File 'lib/raw_image.rb', line 16

def image(*args) Image.new *args; end