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

IPTCSurface.Save

Saves the surface pixels to a pixel array.

Declaration

Source position: line 0

procedure IPTCSurface.Save(

  APixels: Pointer;

  AWidth: Integer;

  AHeight: Integer;

  APitch: Integer;

  AFormat: IPTCFormat;

  APalette: IPTCPalette

);

procedure IPTCSurface.Save(

  APixels: Pointer;

  AWidth: Integer;

  AHeight: Integer;

  APitch: Integer;

  AFormat: IPTCFormat;

  APalette: IPTCPalette;

  ASource: IPTCArea;

  ADestination: IPTCArea

);

Arguments

APixels

  

The destination pixel data.

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 destination pixel data.

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 saved.

ADestination

  

The destination area where pixels will be saved to the pixel data array.

Description

Saves an area of the surface pixels to (or to an area of) the pixel data array APixels. 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.