次の方法で共有


Sprite.Draw メソッド (Texture, Rectangle, Vector3, Vector3, Color)

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

バッチ処理されるスプライトのリストにスプライトを追加します。

名前空間:  Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ:  Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)

構文

'宣言
Public Sub Draw ( _
    srcTexture As Texture, _
    srcRectangle As Rectangle, _
    center As Vector3, _
    position As Vector3, _
    color As Color _
)
'使用
Dim instance As Sprite
Dim srcTexture As Texture
Dim srcRectangle As Rectangle
Dim center As Vector3
Dim position As Vector3
Dim color As Color

instance.Draw(srcTexture, srcRectangle, _
    center, position, color)
public void Draw(
    Texture srcTexture,
    Rectangle srcRectangle,
    Vector3 center,
    Vector3 position,
    Color color
)
public:
void Draw(
    Texture^ srcTexture, 
    Rectangle srcRectangle, 
    Vector3 center, 
    Vector3 position, 
    Color color
)
member Draw : 
        srcTexture:Texture * 
        srcRectangle:Rectangle * 
        center:Vector3 * 
        position:Vector3 * 
        color:Color -> unit 

パラメーター

  • srcRectangle
    型 : System.Drawing.Rectangle
    元のテクスチャのうち、スプライトに使用する部分を示す Rectangle オブジェクト。元のイメージ全体をスプライトに使用する場合は、Empty を指定します。
  • color
    型 : System.Drawing.Color
    Color 構造体。カラー チャネルとアルファ チャネルは、この値によってモジュレートされます。Transparent 値の場合、元のソース カラーとアルファ データが維持されます。

例外

例外 条件
InvalidCallException

メソッドの呼び出しが無効です。たとえば、メソッドのパラメーターに無効な値が含まれている場合などです。

.NET Framework セキュリティ

プラットフォーム

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

Sprite クラス

Sprite メンバー

Draw オーバーロード

Microsoft.WindowsMobile.DirectX.Direct3D 名前空間