WXP C++ Library Version 6.74.9
|
This struct defines a set of RGB values. More...
#include "../include/RGB.h"
Public Member Functions | |
RGB () | |
int | init () |
int | set (float r, float g, float b) |
float | getRed () |
float | getGrn () |
float | getBlu () |
bool | isOff () |
bool | isWhite () |
bool | isBlack () |
int | print () |
Public Attributes | |
float | red |
float | grn |
float | blu |
This struct defines a set of RGB values.
RGB::RGB | ( | ) |
Constructor
References init().
|
inline |
Returns blue value
References blu.
|
inline |
Returns green value
References grn.
|
inline |
Returns red value
References red.
int RGB::init | ( | ) |
Initializes the object
Referenced by WXP::ImageTool::addColor(), and RGB().
int RGB::set | ( | float | r, |
float | g, | ||
float | b | ||
) |
float WXP::RGB::blu |
Its blue value (0-1)
Referenced by WXP::ColorMap::add(), WXP::Graph::allocColor(), WXP::ImageMath::compressColor(), WXP::ColorMap::get(), getBlu(), WXP::Image::getRGB(), init(), isBlack(), WXP::ColorMap::isColorNear(), isOff(), isWhite(), print(), set(), WXP::ImageMath::toGray(), WXP::ImageMath::toIndex(), and WXP::ImageMath::toIndex().
float WXP::RGB::grn |
Its green value (0-1)
Referenced by WXP::ColorMap::add(), WXP::Graph::allocColor(), WXP::ImageMath::compressColor(), WXP::ColorMap::get(), getGrn(), WXP::Image::getRGB(), init(), isBlack(), WXP::ColorMap::isColorNear(), isOff(), isWhite(), print(), set(), WXP::ImageMath::toGray(), WXP::ImageMath::toIndex(), and WXP::ImageMath::toIndex().
float WXP::RGB::red |
Its red value (0-1)
Referenced by WXP::ColorMap::add(), WXP::Graph::allocColor(), WXP::ImageMath::compressColor(), WXP::ColorMap::get(), getRed(), WXP::Image::getRGB(), init(), isBlack(), WXP::ColorMap::isColorNear(), isOff(), isWhite(), print(), set(), WXP::ImageMath::toGray(), WXP::ImageMath::toIndex(), and WXP::ImageMath::toIndex().