7.3. Manipulating Images
In the previous section we covered how to read, view, and save images. In this section we will manipulate images and cover the following topics:
Creating image thumbnails
Rotating
Flipping and zooming in and out (magnifying and demagnifying) images
7.3.1. Creating a Thumbnail of an Image
A thumbnail is a small representation of an image. The Image class provides a method called GetThumbnailImage, which is used to create a thumbnail. This method’s first two parameters are the width and height of the thumbnail image. The third parameter is Image.GetThumbnailImageAbort, which is not used in GDI+ version 1.0 but must be passed in for compatibility. The fourth parameter must be of type IntPtr.Zero. This parameter is not used ...
Get Graphics Programming with GDI+ 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.