Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Color Space Conversion Functions
[Interfaces of MyWins module of MiniGUIExt library]

Functions


Detailed Description

This module defines some color space conversion functions.

Function Documentation

void HSV2RGB Uint16  hin,
Uint8  sin,
Uint8  vin,
Uint8 rout,
Uint8 gout,
Uint8 bout
 

Converts h/s/v values of a color to r/g/b values of the color.

This function converts h/s/v values of a color in HSV color space to r/g/b values of the color in RGB space.

Parameters:
hin The h value of the HSV color space to be converted, the range is between 0 to 359.
sin The s value of the HSV color space to be converted, the range is between 0 to 255.
vin The v value of the HSV color space to be converted, the range is between 0 to 255.
rout The pointer to Uint8, returns the red value of the RGB color space.
gout The pointer to Uint8, returns the green value of the RGB color space.
bout The pointer to Uint8, returns the bout value of the RGB color space.
See also:
RGB2HSV, YUV2RGB, RGB2YUV

void RGB2HSV Uint8  r,
Uint8  g,
Uint8  b,
Uint16 hout,
Uint8 sout,
Uint8 vout
 

Converts r/g/b values of a color in RGB color space to h/s/v of the color in HSV color space.

This function converts r/g/b values of a color in RGB color space to h/s/v values of the color in HSV color space.

Parameters:
r The red value of the color in RGB space to be converted.
g The green value of the color in RGB space to be converted.
b The blue value of the color in RGB space to be converted.
hout The pointer to Uint16, returns the h value of the color in HSV color space.
sout The pointer to Uint8, returns the s value of the color in HSV color space returned.
vout The pointer to Uint8, returns the v value of the color in HSV color space returned.
See also:
HSV2RGB, YUV2RGB, RGB2YUV

void RGB2YUV Uint8  r,
Uint8  g,
Uint8  b,
int *  y,
int *  u,
int *  v
 

Converts r/g/b values of a color in RGB color space to y/u/v values of the color in YUV color space.

The function converts r/g/b values of a color in RGB color space to y/u/v values of the color in YUV color space.

Parameters:
r The red value of the RGB color space to be converted.
g The green value of the RGB color space to be converted.
b The blue value of the RGB color space to be converted.
y The pointer to int, returns the y value of the YUV color space.
u The pointer to int, returns the u value of the YUV color space.
v The pointer to int, returns the v value of the YUV color space.
See also:
RGB2HSV, HSV2RGB, YUV2RGB

void YUV2RGB int  y,
int  u,
int  v,
Uint8 r,
Uint8 g,
Uint8 b
 

Converts y/u/v values of a color in YUV color space to to r/g/b values of the color in RGB color space.

This function converts y/u/v values of YUV color space to r/g/b values of RGB color space.

Parameters:
y The y value of the YUV color space to be converted.
u The u value of the YUV color space to be converted.
v The v value of the YUV color space to be converted.
r The pointer to Uint8, returns the red value of the RGB color space.
g The pointer to Uint8, returns the green value of the RGB color space.
b The pointer to Uint8, returns the bout value of the RGB color space.
See also:
RGB2HSV, HSV2RGB, RGB2YUV


Generated on Mon Jun 26 14:21:40 2006 for MiniGUI V2.0.3 API Reference by  doxygen 1.4.2