Table of Contents

1. Working with images

1.1. Getting an image on the canvas

Rectangles are great, but images are better.

The image type we’ll focus on is the PNG or Portable Network Graphic format. PNG files have the advantage of being able to display thousands of colors (unlike the 256 possible values in a GIF image), and to have transparency (unlike Jpeg files).