IDirect3DMobile::CheckDeviceFormatConversion (Windows CE 5.0)

Send Feedback

This method is used to determine whether driver supports conversion from one display format to another.   It should be used to determine valid source and destination surface formats for calls to IDirect3DMobileDevice::StretchRect.

HRESULT CheckDeviceFormatConversion(  UINT        Adapter,  D3DMDEVTYPE DeviceType,  D3DMFORMAT  SourceFormat,  D3DMFORMAT  DestFormat);

Parameters

  • Adapter
    [in] A UINT value that indicates which device to provide information for. For possible values, see D3DMADAPTER Values.
  • DeviceType,
    [in] A D3DMDEVTYPE enumeration value that specifies the type of device.
  • SourceFormat,
    [in] A D3DMFORMAT enumeration value that specifies the pixel format of the source surface.
  • DestFormat
    [in] A D3DMFORMAT enumeration value that specifies the pixel format of the destination surface.

Return Values

This method returns D3DM_OK if the device supports the or if source and destination surfaces both use the same format.

This method may return one of the following error values if it fails:

  • D3DMERR_INVALIDCALL
  • D3DMERR_INVALIDDEVICE
  • D3DMERR_NOTAVAILABLE
  • E_OUTOFMEMORY

For more information, see D3DMERR Values.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dm.h.
Link Library: D3dm.lib, D3dmguid.lib.

See Also

IDirect3DMobile | D3DMADAPTER Values | D3DMDEVTYPE | D3DMFORMAT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.