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

TPTCSurfaceFactory.CreateNew

Creates a surface with given dimensions and a pixel format.

Declaration

Source position: surfaced.inc line 36

class function TPTCSurfaceFactory.CreateNew(

  AWidth: Integer;

  AHeight: Integer;

  AFormat: IPTCFormat

):IPTCSurface;

Arguments

AWidth

  

The width of the surface.

AHeight

  

The height of the surface.

AFormat

  

The pixel format of the surface.

Description

Creates a surface with dimensions of AWidth by AHeight pixels and a pixel format of AFormat.

Errors

TPTCError - a TPTCError exception is raised on failure.