Advanced Features
GDI+ also provides advanced features that are not explicitly covered in this book. These include scaling, rotating, and translating. Scaling allows you to support zooming in and out by allowing you to set the scale size on your display surface. It basically allows you to draw all of your elements using the same units (pixels), and the positions are automatically updated using the scale size.
Rotating allows you to draw elements and then rotate them by specifying a rotation degree. Translating allows you to draw elements at the desired locations that you can then move, or translate, to new locations.
Another powerful feature is alpha blending. Alpha blending allows you to draw semi-transparent graphics elements. This allows elements ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access