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

TPTCPaletteFactory.CreateNew

Creates a palette object.

Declaration

Source position: line 0

class function TPTCPaletteFactory.CreateNew: IPTCPalette;

class function TPTCPaletteFactory.CreateNew(

  const AData: array of Uint32

):IPTCPalette;

class function TPTCPaletteFactory.CreateNew(

  APalette: IPTCPalette

):IPTCPalette;

Arguments

AData

  

The palette data.

Arguments

APalette

  

The palette object to copy from.

Description

Creates a palette object.

When called without arguments, all palette color entries are set to black. When AData is specified, the palette color entries are set to the values in AData. The AData array is an array of r, g, b, a color values packed into a 32-bit integer in the format ARGB8888.