Contents
|
This brief guide gives an
introduction to how computers display pictures. It gives a simple explanation
of the difference between bitmap and vector formats and when to choose
which.
The information here will help you
understand computer graphics, save you time when editing them and give you
enjoyment in their use
Computer Pictures Computer pictures are made up of dots. The number of dots per inch (dpi) is known as "resolution". In general terms, the more dots per inch, the clearer the picture. But it also means the smaller the picture. A picture file large enough to print clearly at a reasonable size on high resoultion printer is also said to be high resolution. All the graphics supplied by Christian Computer Art are high resolution without being small. |
Printers Printers have
resolutions of 240 dpi (dot matrix); 300 dpi, 600 dpi (laser printers); 360
dpi, 720 dpi, 1440 dpi (ink jet). These are the common resolutions there are
others. Computer
|
Bitmaps If you think about a picture, it is essentially a rectangular grid. Each square in that grid is a dot in the picture. Even a small picture that prints out one-third of an inch square on a 300 dpi laser printer (100x100) will have 10,000 squares, or "cells". These "Picture Cells" are referred to as pixels. Let us assume for the moment that the picture is simple 2-colour (black and white). We already know that computers work in binary digits ("bits") and each bit can have only one of two states, often referred to as "0" and "1". The computer allocates one bit to each pixel and uses the 0 and 1 to represent black and white. Referring to each cell in this way is known as a "bitmap". A bitmap file contains all this information plus some other computer code which says what sort of picture it is, how big it is and so on. There are several bitmap formats. Most compress the bitmap data as well, so there is no direct mathematical correlation between file size and picture dimensions, especially when comparing different formats. Nevertheless, a bigger file usually means a bigger picture! |
So what about colour? To put colour to
a picture, the computer simply increases the number of bits per pixel. There
are four permutations of 1 and 0 with two bits, so you can use four colours.
Three bits
The RGB system is best for colours on screen. For printing, a system known as CMYK is used. This stands for Cyan, Magenta, Yellow and Keyline Black. These are the colours used on a four-colour printing press and if you are sending files to a printer, he will usually want separations; that is four pictures: each containing one of the four colours. |
Common bitmap file formats are: BMP, PCX, PICT, TIFF, JPEG, RLE, IFF-ILBM, IMG, DIB, PNG, GIF. |
Vector
The other method of storing graphics is called "vector". Rather than store a bit-by-bit representation of the graphic as with bitmap formats, vector formats store instructions to the computer on how to draw the picture. When the picture is resized, the computer simply follows the drawing instructions again making best use of pixels to ensure a well-defined graphic every time. To get good definition on bitmaps the file must be reasonably large. The same picture could often be stored in a smaller file in a vector format. Vector does not handle the very small pictures, such as icons, very well. These are better done as bitmaps. There are fewer vector formats. Look for EPS, CDR, WMF, CGM |
Which
graphics editor?
If you want graphic editors, usually bitmap editors have the words "Paint" or "Photo" in the name, whereas "Draw" is often in the name of vector editors. I like to use Paint Shop Pro for bitmaps and Corel Draw for vector. |
Formats
If you want to place a graphic on the world wide web, you must first make sure that it is in one of the formats supported. Web graphics are all bitmap formats. (Note; Shockwave/Flash is a vector format which requires extra browser plug-ins to work). There are many shareware conversion utilities available. In addition, many paint programs will load and save in different formats thereby giving a conversion facility. The most common format for the web is GIF. There are two types of GIF file: 87 and 89. Both can be either interlaced or non-interlaced. Both types take about the same amount of time to appear. A non-interlaced GIF will gradually appear on the screen. An interlaced GIF will appear much quicker, but will be blurred. As more of the picture downloads, the clearer it becomes.
GIF 89 can also be transparent. That is, you can nominate one of the colours to be "see-through". When a picture is placed on the web the background of the page will show through where the transparent colour is. Transparency is mostly used on the background colour where you want the graphic to appear to as a cut-out, rather than a rectangle. Look at the two Good News Bible Logos* on the left, which have been placed on a red background. The first file has no transparency. The second has the white background marked as transparent. A common use for GIFs is animation. Just like a TV cartoon, an animated GIF is composed of a series of still pictures that "play" one after the other. Animating a GIF will put movement onto a web page, but will also increase the size of the file. The next
most common format is JPEG (JPG). Generally speaking, JPEGs are used for
As full-colour photographs, JPEGs are often 24-bit (16.7 million colours) and therefore larger files, where compression is more important. GIF formats, however, are restricted to 8-bit (256 colours). To reduce a photograph to 256 colours can sometimes lead to tones that are not smooth. The third format is a new one that has been slow taking off. It is the PNG (Portable Network Graphics) format. Very few web images are in this format. Web browsers are designed in such a way that when they encounter a file in one of these formats, they will display it on the screen. If you mean for the picture file to be downloaded without being shown, compress it as a zip file (or stuffit, or LHA etc. according to the destination computer) first. Please note that technology is moving fast and it is possible that there will be exceptions to the above when you read this! |
Using Images on
the Web
An image can either be "Background"" or "Inline". A background image is tiled and is like a wallpaper. The orange mottled colour behind the items on this page is a background image. It is placed using the BACKGROUND option within the BODY tag. See an HTML reference for more details. An inline picture is one that
appears on the page along with the text and is placed
Images can be clickable to take the reader to another site. Just nest the IMG tags within 'A' tags. Images can be placed to allow text to flow around one side of them or they can be placed on their own. This subject is beyond the scope of this article and you should refer to an HTML reference document for more details. |
Effect on
speed
Anyone who has been involved in graphic design knows the value of using graphics well on the printed page. To a certain extent, this holds true on web pages, also. However the one dimension the webmaster has to pay attention to is the size of the graphic file. The bigger the file, the longer it takes to download. The longer your reader has to wait, the less attractive your site becomes. Take these steps to ensure your graphics are fast loaders:
|
© Brian Nichols 1999 all rights
reserved.
email: