|
WXP C++ Library Version 6.74.9
|
This struct sets up color values for an image. More...
#include "../include/ImageColor.h"
Public Member Functions | |
| ImageColor () | |
| int | init () |
Public Attributes | |
| float | r |
| float | g |
| float | b |
| int | val |
This struct sets up color values for an image.
| ImageColor::ImageColor | ( | ) |
Constructor
References init().
| int ImageColor::init | ( | ) |
| float WXP::ImageColor::b |
Blue value (0-1)
Referenced by WXP::Image::getRGB(), init(), WXP::Image::setBlu(), WXP::ImageMath::toGray(), WXP::ImageMath::toIndex(), WXP::ImageMath::toIndex(), and WXP::ImageMath::toTrueColor().
| float WXP::ImageColor::g |
Green value (0-1)
Referenced by WXP::Image::getRGB(), init(), WXP::Image::setGrn(), WXP::ImageMath::toGray(), WXP::ImageMath::toIndex(), WXP::ImageMath::toIndex(), and WXP::ImageMath::toTrueColor().
| float WXP::ImageColor::r |
Red value (0-1)
Referenced by WXP::Image::getRGB(), init(), WXP::Image::setRed(), WXP::ImageMath::toGray(), WXP::ImageMath::toIndex(), WXP::ImageMath::toIndex(), and WXP::ImageMath::toTrueColor().
| int WXP::ImageColor::val |
Device specific color value
Referenced by WXP::Image::getPixel(), init(), and WXP::Image::setColorVal().