1.4. Section 4: Manipulating Images

The previous sections in this Wrox Blox have explained how to draw lines, shapes, and text at a moderately high level. You don't need to understand what colors to give which pixels to draw a line; you simply call a Graphics object's DrawLine method, and Visual Basic does the rest.

Usually it's easiest to work at this high level, but sometimes you may want to work directly with the pixels in an image. This is particularly useful when you want to manipulate an existing image such as a bitmap, JPG, or GIF file, or when you want to draw something and then save it in a file of one of those types.

The following sections explain how to load, manipulate, and save these kinds of images.

1.4.1. Creating and Loading ...

Get Visual Basic Graphics Programming 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.