Class: Wx::Image::RGBValue

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(red, green, blue) ⇒ Wx::Image::RGBValue

Constructor for RGBValue, an object that contains values for red, green and blue which represent the value of a color. It is used by Wx::Image.hsv_to_rgb and Wx::Image.rgb_to_hsv, which convert between RGB color space and HSV color space.

Parameters:

  • red (Float)
  • green (Float)
  • blue (Float)


92
# File 'lib/wx/doc/image.rb', line 92

def initialize(red, green, blue)end

Instance Attribute Details

#blueObject (readonly)

Returns the value of attribute blue.



94
95
96
# File 'lib/wx/doc/image.rb', line 94

def blue
  @blue
end

#greenObject (readonly)

Returns the value of attribute green.



94
95
96
# File 'lib/wx/doc/image.rb', line 94

def green
  @green
end

#redObject (readonly)

Returns the value of attribute red.



94
95
96
# File 'lib/wx/doc/image.rb', line 94

def red
  @red
end

Instance Method Details

#to_aryArray(Float,Float,Float)

Make RGBValue usable for parallel assignments like red, green, blue = rgb

Returns:

  • (Array(Float,Float,Float))


98
# File 'lib/wx/doc/image.rb', line 98

def to_ary; end

#to_hsvWx::Image::HSVValue

Convert to HSVValue

Returns:



102
# File 'lib/wx/doc/image.rb', line 102

def to_hsv; end