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

IPTCSurface

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Surface interface.

Declaration

Source position: basesurfaced.inc line 34

type IPTCSurface = interface

  function GetWidth;

  

  function GetHeight;

  

  function GetPitch;

  

  function GetArea;

  

  function GetFormat;

  

  procedure Copy();

  

Copies the contents of this surface to another surface.

  function Lock;

  

Locks the surface and returns a pointer to the locked surface pixel memory.

  procedure Unlock;

  

Unlocks the surface memory after it was locked by a call to IPTCSurface.Lock.

  procedure Load();

  

Loads pixels from a pixel array to the surface.

  procedure Save();

  

Saves the surface pixels to a pixel array.

  procedure Clear();

  

Clears the contents of a surface to black (or to a specified color).

  procedure Palette();

  

Sets or gets the surface palette.

  procedure Clip();

  

Sets or gets the surface clip area.

  function Option();

  

Passes an implementation specific option string to the surface.

  property Width: Integer; [r]

  

Gets the width of the surface in pixels.

  property Height: Integer; [r]

  

Gets the height of the surface in pixels.

  property Pitch: Integer; [r]

  

Gets the pitch of the surface in bytes.

  property Area: IPTCArea; [r]

  

Gets the area of the surface.

  property Format: IPTCFormat; [r]

  

Gets the pixel format of the surface.

end;

Inheritance

IPTCSurface

  

Surface interface.

Description

Surface interface.

This class provides the interface for manipulating an array of pixels. The objects created by the TPTCSurfaceFactory.CreateNew and TPTCConsoleFactory.CreateNew factory methods are concrete implementations of this interface.