ImageEn, unit iexColorPalette

GenerateColorLuminancePalette

GenerateColorLuminancePalette

Declaration

function GenerateColorLuminancePalette(Color: TColor; ColorCount: Integer = 256; MinL : Integer = 10; MaxL : Integer = 240): TIEArrayOfTRGB;

Description

Returns an array of all luminance value (in the range MinL to MaxL) for a color.

Note: You can output the palette as an image using IEDrawColorPalette, or show the palette to the user using IEPromptForColor

Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Example

Also see: Automated Samples
// Return all shades of red
colorMap := GenerateColorLuminancePalette( clRed, 256 );
IEDrawColorPalette( ImageEnView1.IEBitmap, colorMap, 30, 30, 16 );

See Also

GenerateGradientPalette
GenerateHuePalette
GenerateDicomColorPalette
AssignPalette