| ImageEn, unit iexColorPalette |
|
GenerateHuePalette
GenerateHuePalette
Declaration
function GenerateHuePalette(ColorCount: Integer = 256; MinHue : Integer = 0; MaxHue : Integer = 360; Saturation: Integer = 99; Value: Integer = 99): TIEArrayOfTRGB;
Description
Returns an array of a hues in the range
MinHue to
MaxHue.
Note: You can output the palette as an image using
IEDrawColorPalette, or show the palette to the user using
IEPromptForColor
Demo
| Demos\ImageEditing\EveryMethod\EveryMethod.dpr |
Example
// Generate a range of hues
colorMap := GenerateHuePalette( 256 );
IEDrawColorPalette( ImageEnView1.IEBitmap, colorMap, 30, 30, 16 );

See Also
◼GenerateColorLuminancePalette
◼GenerateGradientPalette
◼GenerateDicomColorPalette
◼AssignPalette