Click or drag to resize
AB4D logo

SpriteBatchDraw(ShaderResourceView, RectangleF, Boolean, Color4) Method

Draw method adds the specified texture to the destinationRectangle and with specified mask defined by the color parameter. Draw method must be called after Begin and End methods are called.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public void Draw(
	ShaderResourceView texture,
	RectangleF destinationRectangle,
	bool isDestinationRelative,
	Color4 color
)

Parameters

texture  ShaderResourceView
texture as ShaderResourceView
destinationRectangle  RectangleF
RectangleF that defines the destination rectangle
isDestinationRelative  Boolean
when true, then the destination rectangle coordinates are relative (in range from 0 to 1); when false then the destination coordinate units are pixels
color  Color4
mask as Color4
See Also