Manager.CheckDeviceFormatConversion メソッド
アセンブリ: Microsoft.WindowsMobile.DirectX (microsoft.windowsmobile.directx.dll 内)

Public Shared Function CheckDeviceFormatConversion ( _ adapter As Integer, _ deviceType As DeviceType, _ sourceFormat As Format, _ destFormat As Format _ ) As Boolean
Dim adapter As Integer Dim deviceType As DeviceType Dim sourceFormat As Format Dim destFormat As Format Dim returnValue As Boolean returnValue = Manager.CheckDeviceFormatConversion(adapter, deviceType, sourceFormat, destFormat)
public static bool CheckDeviceFormatConversion ( int adapter, DeviceType deviceType, Format sourceFormat, Format destFormat )
public: static bool CheckDeviceFormatConversion ( int adapter, DeviceType deviceType, Format sourceFormat, Format destFormat )
public static boolean CheckDeviceFormatConversion ( int adapter, DeviceType deviceType, Format sourceFormat, Format destFormat )
public static function CheckDeviceFormatConversion ( adapter : int, deviceType : DeviceType, sourceFormat : Format, destFormat : Format ) : boolean
- adapter
照会するディスプレイ アダプタを示す序数。AdapterListCollection.Default は、常にプライマリ ディスプレイ アダプタです。
メソッドが成功した場合は true。それ以外の場合は false。

CheckDeviceType を使用して、バック バッファと表示形式の間の互換性をテストすると、適切な値が返されます。つまり、呼び出しがデバイスの機能を反映していることを表します。そのデバイスにより、要求されたバック バッファ形式にレンダリングできない場合でも、呼び出しにより ResultCode 列挙体の NotAvailable が返されます。デバイスにより、その形式にレンダリングできても、カラーの変換表示が実行できない場合も、戻り値は NotAvailable になります。アプリケーションでは、CheckDeviceFormatConversion を呼び出すことにより、その表示自体のハードウェア サポートを確認できます。カラー変換表示自体のソフトウェア エミュレーションはありません。
Device.StretchRectangle を呼び出す場合に、CheckDeviceFormatConversion を使用して、元のサーフェイス形式と出力先のサーフェイス形式の組み合わせのいずれが許容されるかを判断することもできます。
カラー変換元の形式は、4 文字のコード (FOURCC) 形式、または有効なバック バッファ形式であることが必要です。出力先の形式は、次の符号なし形式のいずれかであることが必要です。
X1R5G5B5 | X1R5G5B5 | R5G6B5 |
R8G8B8 | R8G8B8 | A8R8G8B8 |


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からManager.CheckDeviceFormatConversion メソッドを検索する場合は、下記のリンクをクリックしてください。

- Manager.CheckDeviceFormatConversion メソッドのページへのリンク