There are two types of computer graphics – raster and vector. The vector graphic is composed of drawing and pathsraster graphic is composed of pixels. So, Here is the difference between the two:
Vector Graphics: Vector Graphics usually are easily modified within the creating application and generally are not affected detrimentally by scaling (enlarging or reducing their size). It stores the image as data (how to draw an image) and scales that data and draws when needed .So no quality loss.
Raster graphics: Raster graphics are produced by digital image capture devices: digital scanners or digital cameras, or by pixel editing programs (e.g., Adobe Photoshop). It stores the image as pixel array and when resizing it resizes that image.Quality loss is the result like photoshop resizing.