[Overview][Constants][Types][Classes][Index] Reference for unit 'ptc' (#ptc)

IPTCColor

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Describes a pixel color.

Declaration

Source position: colord.inc line 34

type IPTCColor = interface

  function GetIndex;

  

  function GetR;

  

  function GetG;

  

  function GetB;

  

  function GetA;

  

  function GetDirect;

  

  function GetIndexed;

  

  function Equals();

  

  property Index: Integer; [r]

  

Gets the palette index value of the color.

  property R: Single; [r]

  

Gets the red color component of the color object.

  property G: Single; [r]

  

Gets the green color component of the color object.

  property B: Single; [r]

  

Gets the blue color component of the color object.

  property A: Single; [r]

  

Gets the alpha color component of the color object.

  property Direct: Boolean; [r]

  

Checks if the color is direct color.

  property Indexed: Boolean; [r]

  

Checks if the color is indexed color.

end;

Inheritance

IPTCColor

  

Describes a pixel color.

Description

Describes a pixel color.

The color class can describe one of two types of color: direct color, or indexed color. Indexed color is an index value into a palette and direct color is a set of red, green, blue and alpha values. Color objects are typically used with surface and console routines IPTCSurface.Clear and IPTCConsole.Clear.