SetDrawRotation
Category: Images and Rendering
Signature
SetDrawRotation(rotation As Double)
Returns
Void
Description
Sets a clockwise rotation in degrees around the active target's origin. The rotation applies to subsequent primitives, images, sprites, buffers, and text.
For DrawImageEx and DrawSpriteEx, this rotation is added to the rotation supplied by the draw call. Clip rectangles remain axis-aligned in target coordinates.
Example
PushDrawState
SetDrawOffset 320, 240
SetDrawRotation 45
DrawImage image, 0, 0
PopDrawState