|
SpriteBatchDrawRectangle Method |
DrawRectangle method draws a rectangle at the specified position and size.
The rectangle is filled by the specified color.
When rotationAngleDegrees is specified (0 by default), then the rectangle is rotated around the center position.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public void DrawRectangle(
Vector2 topLeftPosition,
Vector2 size,
Color4 color,
float rotationAngleDegrees = 0f,
bool isPreMultipliedAlpha = false
)
Parameters
- topLeftPosition Vector2
- position of the top-left corner of the rectangle
- size Vector2
- size of the rectangle
- color Color4
- color
- rotationAngleDegrees Single (Optional)
- clockwise rotation angle in degrees (0 by default)
- isPreMultipliedAlpha Boolean (Optional)
- specifies if the color is specified as pre-multiplied alpha color (false by default)
See Also