 |
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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.SpriteBatch.DrawRectangle(System.Numerics.Vector2,System.Numerics.Vector2,Ab4d.SharpEngine.Common.Color4,System.Single,System.Boolean)"]
See Also