Manager.CheckDeviceFormatConversion メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Manager.CheckDeviceFormatConversion メソッドの意味・解説 

Manager.CheckDeviceFormatConversion メソッド

デバイスをテストして、ある表示形式から別の表示形式への変換をサポートしているかどうかを判断します。

名前空間: Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ: 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 は、常にプライマリ ディスプレイ アダプタです。

deviceType

デバイスの種類を識別する DeviceType 列挙体のメンバ。

sourceFormat

元のアダプタ形式を識別する Format 列挙体のメンバ。

destFormat

出力先のアダプタ形式を識別する Format 列挙体のメンバ。

戻り値
メソッドが成功した場合は true。それ以外の場合は false。

解説解説

CheckDeviceType を使用して、バック バッファと表示形式の間の互換性をテストすると、適切な値が返されます。つまり、呼び出しがデバイスの機能を反映していることを表します。そのデバイスにより、要求されたバック バッファ形式にレンダリングできない場合でも、呼び出しにより ResultCode 列挙体の NotAvailable が返されます。デバイスにより、その形式にレンダリングできても、カラーの変換表示が実行できない場合も、戻り値は NotAvailable になります。アプリケーションでは、CheckDeviceFormatConversion を呼び出すことにより、その表示自体のハードウェア サポートを確認できます。カラー変換表示自体のソフトウェア エミュレーションはありません。

Device.StretchRectangle を呼び出す場合に、CheckDeviceFormatConversion を使用して、元のサーフェイス形式と出力先のサーフェイス形式の組み合わせのいずれが許容されるかを判断することもできます。

カラー変換元の形式は、4 文字のコード (FOURCC) 形式、または有効なバック バッファ形式であることが必要です。出力先の形式は、次の符号なし形式のいずれかであることが必要です。

X1R5G5B5

X1R5G5B5

R5G6B5

R8G8B8

R8G8B8

A8R8G8B8

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Manager クラス
Manager メンバ
Microsoft.WindowsMobile.DirectX.Direct3D 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

Manager.CheckDeviceFormatConversion メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Manager.CheckDeviceFormatConversion メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS