|
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.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax 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