Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

HSVREF

Show in webframe

typedef struct _HSVREF
{
   L_UCHAR uH;
   L_UCHAR uS;
   L_UCHAR uV;
   L_UCHAR uReserved;
} HSVREF, *pHSVREF;

The HSVREF structure contains the Hue, Saturation and Value of a specific color.

Member

Description

uH

Hue of the color.

uS

Saturation of the color.

uV

Value of the color.

uReserved

Reserved.

Comments

pHSVREF is a pointer to an HSVREF structure.

The HSV value is the Hue ,Saturation, Value color space. Traditionally, hue ranges from 0 to 359. However, the hue component of the HSVREF is represented by an unsigned byte. Therefore, the range of 0 to 359 is remapped to a range of 0..255. For example,

 

Color

Hue(0..359)

Hue(0..255)

Red

0

0

Green

120

85

Blue

240

170

Saturation ranges from 0 to 255 where 0 means the highest amount of white and 255 means no white.

Value ranges from 0 to 255 where 0 means highest amount of black and 255 means no black.

This structure is used by both the L_HSVtoRGB and L_RGBtoHSV functions.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.