Difference between Vector and Raster Graphics
Both Vector and raster graphics are widely used nowadays in production of the digital photos, logos, and other digital images. Differences between Vector and Raster graphics are essential to know for the GATE 2023 exam as well. The complete list of the differences is shown below:
Key Differences between Vector and Raster Graphics
|The Raster image is produced with pixels.||The vector image is produced with curves and lines.|
|The raster graphics are cheaper than the vector graphic.||The vector graphics are costlier than the raster graphics.|
|The size of the raster graphic is bigger than then vector graphic.||The size is small hence occupies the lesser space.|
|The scan conversion of the end points into pixels is done.||For vector graphics, scan conversion is not done.|
|Pixel approximation is done for formation of the curves and complex shapes.||Smooth lines and curves are produces without use of approximation.|
|.GIF, .JPG, .BMP, .TIF extensions are produced.||.SVG, .EPS, .AI, .DXF, .PDF extensions are produces|
What is Raster Graphic?
Raster graphics are built from pixels. They are used to store information. The number of pixels present in the image defines the quality of the image. It is directly proportional to the quality of the image. The bitmap will store the information. For example, a 3072 x 2048 image will carry 6.29 megapixels.
The raster graphics are essential for the GATE CSE syllabus. The raster graphics are used to define 2D pictures. The raster images are ideally used in creating digital images as they are easily compressed and edited.
What is a Vector Graphics?
Unlike raster graphics, vector graphics carry mathematically defined lines. Mathematical formulae define these lines and their shape. The important quality of vector images is that they retain their quality irrespective of the size of the image.
Vector graphics are the best suitable graphic choice when solid colours are used. The colour gradient is not achieved in these as in the raster graphics. The images in vector graphics are formed by mathematical lines, sometimes known as wireframes.