[ TDx_Draw_Library ]
[ next: TDDSCaps ]
[ prev: TDDOverlayFX ]
class TDDPixelFormat : public TComponent
class PACKAGE TDDPixelFormat : public TComponent
class type : MultiWrapper
If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.
DESCRIPTION
Top
Properties
Methods
Events
See Also
The TDDPixelFormat component wraps multiple DDPIXELFORMAT structures, which describe the pixel format and color information of a surface.
It is used by TDx_DrawSurface::GetPixelFormat(), TDx_DrawVideoPort::GetBandwidthInfo(), TDx_DrawVideoPort::GetInputFormats and TDx_DrawVideoPort::GetOutputFormats when retrieving color and pixel format information.
It is also present in TDDSurfaceDesc and TDDVideoPortInfo.
To setup this component, first set the TDDPixelFormat::ArraySize property, then set each property using array indexes, eg:
DDPixelFormat1->ArraySize = 1;
DDPixelFormat1->Flags[0] = DDPF_PALETTEINDEXED8;
TDDPixelFormat::AlphaBitDepth refers to the bit depth for alpha-only pixel formats (DDPF_ALPHA).
To obtain the alpha bit depth when the alpa component is included with color components (DDPF_ALPHAPIXELS), count the bits in the various mask members.
For example, this function will return the number of bits set in a given bitmask:
WORD GetNumberOfBits( DWORD Mask )
{
WORD Bits = 0;
while( Mask )
{
Mask = Mask & ( Mask - 1 );
Bits++;
}
return Bits;
}
PROPERTIES
Top
Properties
Methods
Events
See Also
AlphaBitDepth
ArraySize
BBitMask
BumpBitCount
BumpDuBitMask
BumpDvBitMask
BumpLuminanceBitMask
ErrorValue
Flags
FourCC
GBitMask
LuminanceAlphaBitMask
LuminanceBitCount
LuminanceBitMask
RBitMask
RGBAlphaBitMask
RGBBitCount
RGBZBitMask
Size
SizeAll
StencilBitDepth
StencilBitMask
UBitMask
VBitMask
YBitMask
YUVAlphaBitMask
YUVBitCount
YUVZBitMask
ZBitMask
ZBufferBitDepth
METHODS
Top
Properties
Methods
Events
See Also
Clear
ClearAll
EVENTS
Top
Properties
Methods
Events
See Also
OnError
SEE ALSO
Top
Properties
Methods
Events
See Also
TDx_DrawSurface::GetPixelFormat()
TDx_DrawVideoPort::GetBandwidthInfo()
TDx_DrawVideoPort::GetInputFormats()
TDx_DrawVideoPort::GetOutputFormats()
TDDSurfaceDesc::PixelFormat
TDDVideoPortInfo::InputFormat
TDDVideoPortInfo::VBIOutputFormat
TDDVideoPortInfo::VBIInputFormat