Types of Graphics

Graphics for computer systems are grouped into two different approaches that have different strengths and weaknesses. A raster graphic is an image composed of a two-dimensional pixel grid. Each pixel of a raster image has a color associated with it, and the mosaic of color creates a digital surrogate of an object. If you have ever taken a picture with a digital camera, you have created a raster image. A vector graphic, by contrast, uses sets of mathematical formulas to represent the different shapes in an image. One of the strengths that a vector-based graphic has over a raster-based graphic is the fact that you can resize a vector image with no loss in the quality of the image. Because vectors use mathematical formulas, resizing ...

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.