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

IPTCFormat

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

Describes a pixel format.

Declaration

Source position: formatd.inc line 34

type IPTCFormat = interface

  function GetHermesFormat;

  

  function Equals();

  

  function GetR;

  

  function GetG;

  

  function GetB;

  

  function GetA;

  

  function GetBits;

  

  function GetIndexed;

  

  function GetDirect;

  

  function GetBytes;

  

  property R: Uint32; [r]

  

Gets the red component mask of the format object.

  property G: Uint32; [r]

  

Gets the green component mask of the format object.

  property B: Uint32; [r]

  

Gets the blue component mask of the format object.

  property A: Uint32; [r]

  

Gets the alpha component mask of the format object.

  property Bits: Integer; [r]

  

Gets the bits per pixel of the format object.

  property Indexed: Boolean; [r]

  

Checks if the format is indexed color.

  property Direct: Boolean; [r]

  

Checks if the format is direct color.

  property Bytes: Integer; [r]

  

Gets the bytes per pixel of the format object.

end;

Inheritance

IPTCFormat

  

Describes a pixel format.

Description

Describes a pixel format.

The format class describes one of two kinds of pixel formats: indexed color and direct color. Indexed color pixel formats describe of pixel values that index into a palette (See IPTCPalette). Direct color pixel formats describe pixels that have red, green, blue and alpha information packed into each pixel. Format objects are typically used when creating surface classes with TPTCSurfaceFactory.CreateNew, and when opening consoles with IPTCConsole.Open.