11.07.2015 Views

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

50 bitmapped imagesuch tasks as graphics tended to be slow, applications programmers<strong>of</strong>ten bypassed the BIOS <strong>and</strong> dealt with devicesdirectly or created device drivers specific to a particularmodel <strong>of</strong> device. This made the life <strong>of</strong> the PC user morecomplicated because programs (particularly games) maynot work with some video cards, for example, or at leastrequired an updated device driver.While both the main BIOS <strong>and</strong> the auxiliary BIOS chipson devices such as video cards are still essential to theoperation <strong>of</strong> the PC, modern operating systems, such asMicros<strong>of</strong>t Windows <strong>and</strong> applications written for them, generallydo not use BIOS routines <strong>and</strong> employ high performancedevice drivers instead. (By the mid-1990s BIOSesincluded built-in support for “Plug <strong>and</strong> Play,” a system forautomatically loading device drivers as needed. Thus, theBIOS is now usually <strong>of</strong> concern only if there is a hardwarefailure or incompatibility.)Further Reading“System BIOS Function <strong>and</strong> Operation.” Available online. URL:http://www.pcguide.com/ref/mbsys/bios/func.htm. AccessedApril 20, 2007.bitmapped imageA bitmap is a series <strong>of</strong> bits (within a series <strong>of</strong> bytes inmemory) in which the bits represent the pixels in an image.In a monochrome bitmap, each pixel can be represented byone bit, with a 1 indicating that the pixel is “on.” For grayscaleor color images several bits must be used to store theinformation for each pixel. The pixel value bits are usuallypreceded by a data structure that describes various characteristics<strong>of</strong> the image.For example, in the Micros<strong>of</strong>t Windows BMP format,the file for an image begins with a BITMAPFILEHEADERthat includes a file type, size, <strong>and</strong> layout. This is followedby a BITMAPINFOHEADER that gives information aboutthe image itself (dimensions, type <strong>of</strong> compression, <strong>and</strong>color format). Next comes a color table that describes eachIn a monochrome bitmapped image, a 1 is used to represent a pixelthat is turned on, while the empty pixels are represented by zeroes.Color bitmaps must use many more bits per pixel to store colornumbers.color found in the image in terms <strong>of</strong> its RGB (red, green,blue) components. Finally comes the consecutive bytes representingthe bits in each line <strong>of</strong> the image, starting fromlower left <strong>and</strong> proceeding to the upper right.The actual number <strong>of</strong> bits representing each pixeldepends on the dimensions <strong>of</strong> the bitmap <strong>and</strong> the number<strong>of</strong> colors being used. For example, if the bitmap has amaximum <strong>of</strong> 256 colors, each pixel value must use one byteto store the index that “points” to that color in the colortable. However, an alternative format stores the actual RGBvalues <strong>of</strong> each pixel in three consecutive bytes (24 bits),thus allowing for a maximum <strong>of</strong> 24 (16,777,216) colors (seecolor in computing).Shortcomings <strong>and</strong> AlternativesThe relationship between number <strong>of</strong> possible colors <strong>and</strong>amount <strong>of</strong> storage needed for the bitmap means that themore realistic the colors, the more space is needed to storean image <strong>of</strong> a given size, <strong>and</strong> generally, the more slowly thebitmap can be displayed. Various techniques have been usedto shrink the required space by taking advantage <strong>of</strong> redundantinformation resulting from the fact that most imageshave areas <strong>of</strong> the same color (see data compression).Vector graphics <strong>of</strong>fer an alternative to bitmaps, particularlyfor images that can be constructed from a series <strong>of</strong> lines.Instead <strong>of</strong> storing the pixels <strong>of</strong> a complete image, vector graphicsprovides a series <strong>of</strong> vectors (directions <strong>and</strong> lengths) plusthe necessary color information. This can make for a muchsmaller image, as well as making it easy to scale the image toany size by multiplying the vectors by some constant.Further ReadingArtymiak, Jacek. Dynamic Bitmap Graphics with PHP <strong>and</strong> Gd. 2nded. Lublin, Pol<strong>and</strong>: devGuide.net, 2007.“Micros<strong>of</strong>t Windows Bitmap File Format Summary.” FileFormat-Info. Available online. URL: http://www.fileformat.info/format/bmp/egff.htm. Accessed May 10, 2007.Slaybaugh, Matt. Pr<strong>of</strong>essional Web Graphics. Boston: Course <strong>Technology</strong>,2001.bits <strong>and</strong> bytes<strong>Computer</strong> users soon become familiar with the use <strong>of</strong> bits(or more commonly bytes) as a measurement <strong>of</strong> the capacity<strong>of</strong> computer memory (RAM) <strong>and</strong> storage devices suchas disk drives. They also speak <strong>of</strong> such things as “16-bitcolor,” referring to the number <strong>of</strong> different colors that canbe specified <strong>and</strong> generated by a video display.In the digital world a bit is the smallest discernablepiece <strong>of</strong> information, representing one <strong>of</strong> two possible states(indicated by the presence or absence <strong>of</strong> something such asan electrical charge or magnetism, or by one <strong>of</strong> two voltagelevels). Bit is actually short for “binary digit,” <strong>and</strong> a bit correspondsto one digit or place in a binary (base 2) number.Thus an 8-bit value <strong>of</strong>11010101corresponds, from right to left, to (1 * 2 0 ) + (0 * 2 1 ) + (1 *2 2 ) + (0 * 2 3 ) + (1 * 2 4 ) + (0 * 2 5 ) + (1 * 2 6 ) + (1 * 2 7 ), or 213in terms <strong>of</strong> the familiar decimal system.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!