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

IPTCColor.Index

Gets the palette index value of the color.

Declaration

Source position: colord.inc line 45

property IPTCColor.Index: Integer
  read GetIndex;

Description

Gets the palette index value of the color.

The palette index is only valid if the color is indexed. A color object is an indexed color if it was created by the TPTCColorFactory.CreateNew(AIndex: Integer) constructor. If the color object is not indexed color then the index value is always zero.