Surface rotation and scaling

Home / Features / Surface rotation and scaling

An additional blitting method enables the developer to rotate, scale (shrink and enlarge) and flip (horizontal and vertical) any surface real-time (rotating and scaling is also called 'rotozooming'). This can save memory and graphics resources for rotating objects, because you don't need to have an image for every frame.

The following images demonstrate scaling, rotating and flipped blits.

Original image
Original image
Scale (shrink)
Scale (shrink)
Scale (enlarge)
Scale (enlarge)
Rotate
Rotate
Rotate + scale
Rotate + scale
Horizontal flip
Horizontal flip

Back to Features

Latest forum posts