JCL Help:SetColorFlag

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Sets the Flag component of a TColor.


Pascal

 function SetColorFlag(const Color: TColor; const Flag: Byte): TColor;


Parameters

Parameters Description
const Color: TColor The color whose Flag component to set.
const Flag: Byte Value for the Flag component. Valid values are 0, 1 and 2. See the description above.


Return Value

Copy of the supplied color after the Flag component has been modified.


Description

SetColorFlag sets the Flag component of a TColor. The Flag component is contained in the high order byte of the TColor value and determines how Delphi displays the color. Currently this can be either 0, 1, or 2 and have the following meaning:

Value Description
0 The color obtained is the closest matching color in the system palette.
1 The color obtained is the closest matching color in the currently realized palette.
2 The value is matched with the nearest color in the logical palette of the current device context.


See Also

SetRGBValue SetColorRed SetColorGreen SetColorBlue


About

Unit

JclGraphUtils


Donator

Pelle F. S. Liljendal


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page