Unit 1 Introduction
Unit 1 Introduction
Computer Graphics:
Display of information
Design
User interfaces
Simulation
According to these four areas there are several types of applications
which are used in today’s world. These are,
Two distinct approaches exist for digitally encoding static images. These
are known as raster and vector graphics. A further group of formats can
store both raster and vector data within a single file, and are known as
metafiles. A variety of file formats exist for encoding each type of
image.
Raster Graphics
PCX
The PCX format was developed by ZSoft for its MS-DOS PC Paintbrush
graphics application. In 1990, Microsoft licensed PC Paintbrush to
integrate into Windows 3.0 (as Microsoft Paintbrush), and this resulted
in PCX becoming one of the most widely used raster formats for the
Windows platform. Its popularity has however, waned in recent years
following the advent of more advanced formats. The most recent version
of the format is Version 5, which was released in 1991.
Vector Graphics
The Windows Metafile format was developed by Microsoft for use with
its Windows operating system. WMF supports colour depths up to 24-
bit, and does not offer compression. Embedded raster images are stored
in Windows Bitmap (BMP) format (see 3.9). WMF has been partially
superseded by EMF, but is still supported by many Windows
applications and, although proprietary, is free to use.
Graphics Standards
G.K.S. was the first and most successful attempt to design an
international standard for computer graphics. The original German title
becomes "Graphical Kernel System" when translated into English or
American, which luckily preserves the same initials. It is a two-
dimensional system (since most if not all graphics output appears on
two-dimensional screens or plotter paper) and assumes that software for
the more complex three-dimensional pictures will be designed to
surround the kernel. It has received approval from the International
Standards Organisation (I.S.O.) and is fully documented. Software
written to run on one certified implementation of GKS should run
without alteration on any other.
Following the acceptance of GKS as an international standard, work
commenced on two related standards, namely CGI and CGM.
The"Computer Graphics Interface" provides a low-level standard
between the actual hardware and GKS and specifies how device-drivers
should be written. This is described fully in the text by Arnold and Bono
(ref 10). The "Computer Graphics Metafile" is used to transfer graphics
segments from one computer system to another. This is described in
references 10 and 11.
In March 1989, the annual conference of the UK Chapter of
Eurographics was held at Manchester. One of the highlights of this
conference was a demonstration of the use of the Computer Graphics
Metafile to transfer information between many different configurations
of hardware and software. This proved beyond argument that all three
versions of CGM were now implemented and that pictures could be
transferred quickly and accurately between many different software
packages and the results displayed on a wide variety of output devices.
Some minor problems remained, relating to points not defined by CGM.
For example, all systems had assumed linestyle No.1 was a solid line
and so there were no surprises here, but the choice of colour was far
from unanimous and pictures would often change colour when they
arrived at a new system. This could easily be reset by the receiving
system, provided they were given information about the colours needed,
the only major problem being the section which was drawn in black on
black and so disappeared completely until the background colour was
changed to grey. Then it reappeared in all its original detail.
Discussions began in 1986, concerning standards for three-dimensional
graphics with 3D-GKS (an extension of GKS) and PHIGS
(Programmers Hierarchical Interactive Graphics System) as the main
contenders. Not surprisingly, the advocates of 3D-GKS are those who
formulated the original GKS and now wish to provide a three-
dimensional extension compatible with GKS. This is largely a European
initiative. P.H.I.G.S. (which stands for Programmers Hierarchical
Interactive Graphics System) is a mainly American invention and
resembles the old SIGGRAPH Core in some respects. It claims
compatibilty with GKS and so also has similaritites with this standard.
The official I.S.O. viewpoint is that both these proposals form part of a
set of compatible standards which will be used for different applications
and hardware requirements. Program compatability should be achieved
via a processor, PHI-GKS, which will allow for exchange of software
between the two systems. By 1988, the specifications for both 3D-GKS
and PHIGS were at an advanced stage and at the 1988 Eurographics
conference, it was announced that the first five-year review of GKS was
about to start.
Although many ideas are common to both GKS and the Core, there are a
few important differences. For example, in GKS all parts of the drawing
are defined in terms of world coordinates and the concept of "current
cursor position" is completely omitted. Consequently GKS has no
MOVE command to move the cursor (or the pen on the plotter) to a new
position nor does it have any commands for moving or drawing relative
to the current cursor position. This may seem strange to some of you
who are familiar with certain home computers, but in fact it is no
handicap once you have become used to designing graphics software
with GKS in mind.