Class: PureJPEG::Source::Pixel

Inherits:
Struct
  • Object
show all
Defined in:
lib/pure_jpeg/source/interface.rb

Overview

An RGB pixel value.

Instance Attribute Summary collapse

Instance Attribute Details

#bInteger

Returns blue component (0-255).

Returns:

  • (Integer)

    blue component (0-255)



19
# File 'lib/pure_jpeg/source/interface.rb', line 19

Pixel = Struct.new(:r, :g, :b)

#gInteger

Returns green component (0-255).

Returns:

  • (Integer)

    green component (0-255)



19
# File 'lib/pure_jpeg/source/interface.rb', line 19

Pixel = Struct.new(:r, :g, :b)

#rInteger

Returns red component (0-255).

Returns:

  • (Integer)

    red component (0-255)



19
# File 'lib/pure_jpeg/source/interface.rb', line 19

Pixel = Struct.new(:r, :g, :b)