record TPixelFormatHelper
Unit
PXL.Formats
Declaration
type TPixelFormatHelper = record helper for TPixelFormat
Description
Extension for TPixelFormat to provide number of bits, bytes and string conversion.
Overview
Methods
Properties
property Bits: Integer read GetBits; |
property Bytes: Integer read GetBytes; |
Description
Methods
function CanBulkCopyTo(const DestFormat: TPixelFormat): Boolean; |
|
Returns True when a simple copy operation can be performed between pixels of source and destination format without apparent loss of information. For instance, it is possible to copy pixels from A8R8G8B8 to X8R8G8B8 since the second one doesn't have meaningful alpha-channel.
|
class function CreateFromString(const Text: StdString): TPixelFormat; static; |
|
Converts readable string to actual pixel format.
|
function HasAlphaChannel: Boolean; |
|
Returns True for pixel formats that contain alpha-channel and False otherwise.
|
function ToString: StdString; |
|
Converts the current pixel format to readable string.
|
Properties
property Bits: Integer read GetBits; |
|
Returns number of bits that each pixel in current format occupies.
|
property Bytes: Integer read GetBytes; |
|
Return number of bytes that each pixel in current format occupies.
|
Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.
|