 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic 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