Category: Images and Rendering
SetDrawRotation(rotation As Double)
Void
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.
PushDrawState
SetDrawOffset 320, 240
SetDrawRotation 45
DrawImage image, 0, 0
PopDrawState