Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

spdtColor Class Reference

#include <spdtcolor.h>

Inheritance diagram for spdtColor:

sptkObject List of all members.

Public Member Functions

void setColorByString (std::string color)
void setColorByRGB (int R, int G, int B)
void setColorByHSV (int H, int S, int V)
void setColorByCMYK (int C, int M, int Y, int K)
int getR ()
int getG ()
int getB ()
int getH ()
int getS ()
int getV ()
int getC ()
int getM ()
int getY ()
int getK ()
int getGray ()

Protected Attributes

int rgb_r
int rgb_g
int rgb_b
int hsv_h
int hsv_s
int hsv_v
int cmyk_c
int cmyk_m
int cmyk_y
int cmyk_k

Detailed Description

Author:
Sven Broenstrup


Member Function Documentation

int spdtColor::getB  
 

Get blue value (RGB)

Returns:
Blue component of RGB, value from 0 to 255

int spdtColor::getC  
 

Get cyan value (CMYK)

int spdtColor::getG  
 

Get green value (RGB)

Returns:
Green component of RGB, value from 0 to 255

int spdtColor::getGray  
 

Get gray value

Returns:
Gray equivalent to the color, value from 0 to 255

int spdtColor::getH  
 

Get hue value (HSV)

Returns:
Hue component of HSV, value from 0 to 100

int spdtColor::getK  
 

Get blacK value (CMYK)

int spdtColor::getM  
 

Get magenta value (CMYK)

int spdtColor::getR  
 

Get red value (RGB)

Returns:
Red component of RGB, value from 0 to 255

int spdtColor::getS  
 

Get saturation value (HSV)

Returns:
Saturation component of HSV, value from 0 to 360

int spdtColor::getV  
 

Get brightness value (HSV)

Returns:
Brightness component of HSV, value from 0 to 100

int spdtColor::getY  
 

Get cyan value (CMYK)


Member Data Documentation

int spdtColor::cmyk_c [protected]
 

Cyan component of CMYK

int spdtColor::cmyk_k [protected]
 

BlacK component of CMYK

int spdtColor::cmyk_m [protected]
 

Magenta component of CMYK

int spdtColor::cmyk_y [protected]
 

Yello component of CMYK

int spdtColor::hsv_h [protected]
 

Hue component of HSV

int spdtColor::hsv_s [protected]
 

Saturation component of HSV

int spdtColor::hsv_v [protected]
 

Brightness value component of HSV

int spdtColor::rgb_b [protected]
 

Blue component of RGB

int spdtColor::rgb_g [protected]
 

Green component of RGB

int spdtColor::rgb_r [protected]
 

Red component of RGB


The documentation for this class was generated from the following file:
Powered by SPOM