Chapter 11. Graphic Transformations

In this chapter

  • Moving

  • Scaling

  • Rotating

  • Next Steps

We have studied calculations for accurately determining when objects in the Graphics Editor are selected from the canvas, and we now shift our focus to the actions that can be applied to an object that has been successfully selected.

Graphic transformations, as implied by the phrase, are actions that alter the graphic object. The Graphics Editor supports the move, scale, and rotate functions for altering the objects of the editor.

Each of these is discussed in the following sections. As was necessary with the analysis of proper object selection, consideration is given separately to point-based objects and arc objects because the transformation methods are ...

Get X Window Programming from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.