Click or drag to resize
AB4D logo

SpriteBatchDraw(ShaderResourceView, RectangleF, Boolean) 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.0.8865.1045
Syntax
C#
public void Draw(
	ShaderResourceView texture,
	RectangleF destinationRectangle,
	bool isDestinationRelative = false
)

Parameters

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