Class: PureJPEG::Source::Pixel
- Inherits:
-
Struct
- Object
- Struct
- PureJPEG::Source::Pixel
- Defined in:
- lib/pure_jpeg/source/interface.rb
Overview
An RGB pixel value.
Instance Attribute Summary collapse
-
#b ⇒ Integer
Blue component (0-255).
-
#g ⇒ Integer
Green component (0-255).
-
#r ⇒ Integer
Red component (0-255).
Instance Attribute Details
#b ⇒ Integer
Returns blue component (0-255).
19 |
# File 'lib/pure_jpeg/source/interface.rb', line 19 Pixel = Struct.new(:r, :g, :b) |
#g ⇒ Integer
Returns green component (0-255).
19 |
# File 'lib/pure_jpeg/source/interface.rb', line 19 Pixel = Struct.new(:r, :g, :b) |
#r ⇒ Integer
Returns red component (0-255).
19 |
# File 'lib/pure_jpeg/source/interface.rb', line 19 Pixel = Struct.new(:r, :g, :b) |