wxWidgets: wxImage::RGBValue Class Reference

| Version: 3.1.5

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
wxImage::RGBValue Class Reference

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.1/wxWidgets3.1-3.1.5-4.x86_64/src/wxWidgets-3.1.5/interface/wx/image.h>`

## Detailed Description

A simple class which stores red, green and blue values as 8 bit unsigned integers in the range of 0-255.

## Public Member Functions
| RGBValue (unsigned char r=0, unsigned char g=0, unsigned char b=0)
| Constructor for RGBValue, an object that contains values for red, green and blue which represent the value of a color.

## Public Attributes
unsigned char | red
unsigned char | green
unsigned char | blue

## Constructor & Destructor Documentation

## ◆ RGBValue()

wxImage::RGBValue::RGBValue | ( | unsigned char | r = 0,
|  | unsigned char | g = 0,
|  | unsigned char | b = 0 )

Constructor for RGBValue, an object that contains values for red, green and blue which represent the value of a color.

It is used by wxImage::HSVtoRGB and wxImage::RGBtoHSV, which convert between HSV color space and RGB color space.

## Member Data Documentation

## ◆ blue

unsigned char wxImage::RGBValue::blue

## ◆ green

unsigned char wxImage::RGBValue::green

## ◆ red

unsigned char wxImage::RGBValue::red