Export (0) Print
Expand All

Sprite.Draw Method (Texture, Rectangle, Vector3, Vector3, Color)

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

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
)
public function Draw (
	srcTexture : Texture, 
	srcRectangle : Rectangle, 
	center : Vector3, 
	position : Vector3, 
	color : Color
)

Parameters

srcTexture

A Texture that represents the sprite texture.

srcRectangle

A Rectangle object that indicates the portion of the source texture to use for the sprite. Specify Empty to use the entire source image for the sprite.

center

A Vector3 structure that identifies the center of the sprite. A value of (0,0,0) indicates the upper-left corner.

position

A Vector3 structure that identifies the position of the sprite. A value of (0,0,0) indicates the upper-left corner.

color

A Color structure. The color and alpha channels are modulated by this value. The Transparent value maintains the original source color and alpha data.

Exception typeCondition

InvalidCallException

The method call is invalid. For example, a method's parameter may contain an invalid value.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft