

Rather than having a bit in the file for each bit of line drawing we use commands which describe series of points to be connected.ĪS a result a much smaller file is obtained. In vector graphics, the file is created and saved as a sequence of vector statements. In physics: A vector is something which has a magnitude and direction. As a result vector graphics print crisply even when they are enlarged. Each pixel represents a geographical region, and the value in that pixel represents some characteristic of that region. Vector graphics are best for printing since it is composed of a series of mathematical curves. A raster dataset is composed of rows (running across) and columns (running down) of pixels (also know as cells). The number of pixels in an image depends on the file type (for example, JPEG, GIF, or PNG ). The more pixels an image has, the higher quality it will be, and vice versa.

Making use of sequential commands or mathematical statements or programs which place lines or shapes in a 2-D or 3-D environment is referred to as Vector Graphics. Raster files are images built from pixels tiny color squares that, in great quantity, can form highly detailed images such as photographs. Hence for images which need to scaled to different sizes, we use vector graphics. Scaling down these images is easy but enlarging a bitmap makes it pixelated or simply blurred. Image formats like jpeg and gif are common compressed image formats. We use algorithms which compress images to help reduce these file sizes. As an example, a 640 x 480 image requires information to be stored for 307,200 pixels, while a 3072 x 2048 image (from a 6.3 Megapixel digital camera) needs to store information for a whopping 6,291,456 pixels. The larger the image, the more disk space the image file will take up. Raster graphics, also known as bitmaps, store image data as fixed pixels. This means a large file needs a large bitmap. The minX and minY values define the coordinate of the upper. The rectangle, known as the Rasters bounding rectangle and available by means of the getBounds method, is defined by minX, minY, width, and height values. Raster images use bit maps to store information. A Raster defines values for pixels occupying a particular rectangular area of the plane, not necessarily including (0, 0).
#Raster definition how to
How to add “graphics.h” C/C++ library to gcc compiler in Linux.How to include graphics.h in CodeBlocks?.DDA Line generation Algorithm in Computer Graphics.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
