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

IPTCPalette.Lock

Gets a pointer to the palette data array.

Declaration

Source position: paletted.inc line 35

function IPTCPalette.Lock: PUint32;

Function result

A pointer to the palette data.

Description

Gets a pointer to the palette data array. The data array is an array of r, g, b, a color values packed into a 32-bit integer in the format ARGB8888. Each successful palette lock must be accompanied by an unlock (See IPTCPalette.Unlock). Only one lock is allowed on a palette object at any one time.

Errors

TPTCError - a TPTCError exception is raised on failure.