Vector versus bitmap

There are two types of format in computer graphics—bitmap and vector. Bitmap images (also known as raster images) are images that are stored as a series of tiny dots called pixels. Each pixel will be assigned a color and gets displayed on screen exactly how it's stored—a one-to-one correspondence between the pixels and what is displayed on the screen.

On the other hand, vector images are not based on bitmap patterns but rather use mathematical formulas to represent lines and curves that can be combined to create geometrical shapes.

The main characteristics of both formats are listed here:

  • Bitmap:
    • Usually a larger file size
    • Cannot be enlarged into a higher resolution as the image quality will be affected
    • Used to display ...

Get Hands-On GUI Programming with C++ and Qt5 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.