[Overview][Constants][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Describes a pixel format.
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; |
|
|
|
Gets the red component mask of the format object. |
|
|
Gets the green component mask of the format object. |
|
|
Gets the blue component mask of the format object. |
|
|
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; |
|
Describes a pixel format. |
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.