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

IPTCSurface.Load

Loads pixels from a pixel array to the surface.

Declaration

Source position: line 0

procedure IPTCSurface.Load(

  const APixels: Pointer;

  AWidth: Integer;

  AHeight: Integer;

  APitch: Integer;

  AFormat: IPTCFormat;

  APalette: IPTCPalette

);

procedure IPTCSurface.Load(

  const APixels: Pointer;

  AWidth: Integer;

  AHeight: Integer;

  APitch: Integer;

  AFormat: IPTCFormat;

  APalette: IPTCPalette;

  ASource: IPTCArea;

  ADestination: IPTCArea

);

Arguments

APixels

  

The pixel data to be loaded.

AWidth

  

The width of the pixel data in pixels.

AHeight

  

The height of the pixel data in pixels.

APitch

  

The pitch of the pixel data in bytes.

AFormat

  

The format of the pixel data.

APalette

  

The palette of the pixel data (ignored in direct color).

Arguments

APixels

  

The pixel data to be loaded.

AWidth

  

The width of the pixel data in pixels.

AHeight

  

The height of the pixel data in pixels.

APitch

  

The pitch of the pixel data in bytes.

AFormat

  

The format of the pixel data.

APalette

  

The palette of the pixel data (ignored in direct color).

ASource

  

The source area of pixels to be loaded.

ADestination

  

The destination area where pixels will be loaded on the surface.

Description

Loads an area of pixels from the pixel array APixels to the surface (or to an area of the surface). The source and destination areas (if specified) are clipped to the surface clip area and the dimensions of the pixel data.

Errors

TPTCError - a TPTCError exception is raised on failure.