ImageFormatToD3DFormat Function
ImagingDirect3D9

Returns D3D format equivalent to the given TImageFormatInfo.

Pascal
function ImageFormatToD3DFormat(const Format: TImageFormat; 
                                var ConversionTo: TImageFormat): TD3DFormat;
File

ImagingDirect3D9 (at line 64)

Description

It returns D3DFMT_UNKNOWN if equivalent cannot be found. If returned ConversionTo is not the same as input format then image must be first converted to this format for the returned D3D format to be valid. You should also check if returned D3D format is supported by the current D3D device using IsD3DFormatSupported.

Related Information
You are here: Symbol Reference > Functions > ImageFormatToD3DFormat Function