There are two types of computer graphics-Raster and Vector.
Raster graphics is a composed of pixels. A bitmap image uses a grid of individual pixels where each pixel can be a different color or shade.
Vector graphics is a composed of paths. Vector graphics use mathematical relationships between points and the paths connecting them to describe an image.
Advantages and disadvantages:
Both raster and vector images have their strength and weakness. Raster images application typically have a range of photo effects, and photo editing functions. This makes raster graphic application ideal for editing photos. If image requires a full color range, raster graphics are more appropriate. If we draw images from scratch vector graphics are more appropriate.