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

IPTCSurface.Palette

Sets or gets the surface palette.

Declaration

Source position: line 0

procedure IPTCSurface.Palette(

  APalette: IPTCPalette

);

function IPTCSurface.Palette: IPTCPalette;

Arguments

APalette

  

The palette data.

Function result

The surface palette object.

Description

The procedure sets the surface palette to the palette specified in the APalette parameter. Setting the surface palette in direct color will not cause an exception to be raised even though it has no effect.

The function gets the surface palette object.

Errors

TPTCError - a TPTCError exception is raised on failure.