ARTICLE

Vector Graphics vs Raster Graphics in XAML Silverlight

Posted by Abhimanyu K Vatsa Articles | Silverlight with C# April 22, 2011
In this article, you will learn the differences between Vector Graphics and Raster Graphics.
Reader Level:

Introduction

 

Computer systems use two kinds of graphics:

 

(i)          Vector

 

Vector graphics contain the drawing instructions other than the color value in pixels. In Silverlight whatever we design (like lines, curves, points, and polygons) are examples of vector graphics. If a zoom factor is applied to such a graphics, the framework calculates a new view of this image in a smooth way and even the smallest details remain sharp and precise.

 

image002.jpg

 

The above image is an example of vector graphics that we design in Silverlight.

 

(ii)         Raster

 

Raster graphics are an array of pixels with values indicating the color. Raster graphics are defined in pixels. BMP, TIF, GIF, JPG, PNG etc are example of raster graphics. Since sizes are measured in pixels the print dimension depends on the resolution of the printer. BMP records every pixels in the image, so the size is very big even for a small images. Raster graphics does not resize well and when we zoom in too much, pixels can be seen. This gives a nasty look to an image.

 

image004.jpg

 

Look at the above image; it is a human eye but it is very nasty.

 

Be tuned for the next article.

 

HAVE A HAPPY CODING!!

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.