The principles and applications of computer graphics are discussed.
Computer graphics are related to all activities were static and animated pictures and images are created, processed and manipulated using specialized hardware and computer software. Data in the form of images is easy to understand and interpret. Hence the use of computers in producing static and animated images has revolutionized video games and movies production.
Manipulating images needs powerful tools that have to process and store large amount of data. Computers offer both advantages of very high speed of operations and large capacity of data storage hence their widespread use in generating and processing graphics.
A typical graphics system includes a computer with a fast processor, large memory, frame buffer and a display device such a monitor, an input device such as keyboard and a mouse, an output device such a printer.
A raster or bitmap image uses a grid of individual dots called pixels where each pixel is a small colored square. When an image is scanned, the image is converted to a collection of
pixels
called a raster image. This conversion make it easy to edit and process these images. JPEG and GIF images are examples of raster images.
Images in vector graphics are basically points connected by lines of various shapes. Two points and a straight path between them, for example, are used to describe a segment AB but more points and more complex paths are needed for more complicated shapes. Figure 1 below shows the same shape as raster and vector images.
.
Computer graphics are applied in industry, art, entertainment, education, medicine and defense. Computer graphics applications may be classified into 4 major groups: user interface, display of information, Design and simulation.
More specific applications include
Compilers for computer graphics refer to software programs that translate programming code written in high-level languages into the low-level instructions that graphics hardware can understand and execute.
These compilers are specifically designed to optimize the performance of graphics processing units (GPUs) and other specialized hardware used in computer graphics.
Some of the compilers (languages) that provide their graphical libraries in order to make programming of 2-D and 3-D computer graphics with animation are: Java, Visual C/C++, visual basic, Turbo C, etc.
The basic (or primitive) shapes from which almost any shape can be drawn are:
There are 3 basic operations involved in creating a computer graphics of an object: