7.1. Raster and Vector Images
The graphics world divides images into two types: raster and vector.
A raster image (also called bitmap) is a collection of one or more pixels. Each pixel of the image can be controlled individually, which means that each pixel of the image can have a different color or shade. In a raster image that contains a line and a rectangle, the line and rectangle are each a sequence of pixels. Raster images require higher resolutions and anti-aliasing for a smooth appearance and are best suited for photographs and images with shading.
A vector image is a collection of one or more vectors. Mathematically, a vector is a combination of a magnitude and a direction, which can be used to represent the relationships between points, ...
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.