Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

DecColor

DecColor - decrease the component RGBs of a color by the quantity specified (usually results in a darker color overall).

Declaration

Source position: graphics.pp line 1970

function DecColor(

  AColor: TColor;

  AQuantity: Byte

):TColor;

Arguments

AColor

  

AColor - the original color for processing.

AQuantity

  

AQuantity - the amount by which the color is to be changed.

Function result

Returns a copy of the original color, decremented by a specified amount.



CT Web help

CodeTyphon Studio