Flux rss

Computer graphics

The field of the IT concerning the creation and the handling of digital images is called computer graphics. Computer graphics cover various areas of knowledge, including the representation of graphic elements (text, image or video), as well as their transformations (rotation, translation, zoom,…) by means of algorithms.

Display technology

The image is shown on a screen (also called a moniteur), which is an output peripheral device that allows a visual representation to be offered. This information comes from the computer, but in an “indirect” way. Indeed, the processor does not directly send information to the monitor, but processes the information coming from its Random access memory (RAM), then sends it to a graphics card that converts the information into electrical impulses, which it then sends to the monitor.

Computer monitors are usually cathode tubes, i.e. a tube made out of glass in which an electron gun emits electrons which are then directed by a magnetic field towards a screen on which small phosphorescent elements (luminophores) are laid out, constituting points (pixels) that emit light when the electrons hit them.

The pixel concept

An image consists of a set of points called pixels (the word pixel is an abbreviation of PICture ELement) The pixel is thus the smallest component of a digital image. The entire set of these pixels is contained in a two-dimensional table constituting the image:

Since screen-sweeping is carried out from left to right and from top to bottom, it is usual to indicate the pixel located at the top left hand corner of the image using the coordinates [0,0], this means that the directions of the image axes are the following:

  • The direction of the X-axis is from left to right
  • The direction of the Y-axis is from top to bottom, contrary to the conventional notation in mathematics, where the direction of the Y-axis is upwards.

Definition and resolution

The number of points (pixels) constituting the image, that is, its “dimensions” (the number of columns of the image multiplied by its number of rows) is known as the definition. An image 640 pixels wide and 480 pixels high will have a definition of 640 by 480 pixels, which is written as 640x480.

On the other hand, the resolution, a term often confused with the “definition”, is determined by the number of points per unit of area, expressed in dots per inch (DPI), an inch being equivalent to 2.54 cm. The resolution thus makes it possible to establish the relationship between the number of pixels of an image and the actual size of its representation on a physical support. A resolution of 300 dpi thus means 300 columns and 300 lines of pixels in a square inch which thus yields 90000 pixels in a square inch. The 72 dpi reference resolution gives us a 1”/72 (an inch divided by 72) pixel, that is to say 0.353mm, corresponding to a pica (Anglo-Saxon typographical unit).

Colour models

An image is thus represented by a two-dimensional table in which each cell is a pixel. To represent an image by means of computer, it is thus enough to create a pixel table in which each cell contains a value. The value stored in a cell is coded on a certain number of bits which determine the colour or the intensity of the pixel, This is called the coding depth (or is sometimes also called the colour depth). There are several coding depth standards:

  • black and white bitmap: by storing one bit in each cell, it is possible to define two colours (black or white).
  • Bitmap with 16 colours or 16 levels of grey: storing 4 bits in each cell, it is possible to define 24 intensities for each pixel, that is, 16 degrees of grey ranging from black to white or 16 different colours.
  • Bitmap with 256 colours or 256 levels of grey: by storing a byte in each cell, it is possible to define 24 intensities, that is, 256 degrees of grey ranging from black to white or 256 different colours.
  • Colour palette colourmap): thanks to this method it is possible to define a pallet, or colour table, with all the colours that can be contained in the image, for each of which there is an associated index. The number of bits reserved for the coding of each index of the palette determines the number of colours which can be used. Thus, by coding the indexes on 8 bits it is possible to define 256 usable colours; that is, each cell of the two-dimensional table that represents the image will contain a number indicating the index of the colour to be used. An image whose colours are coded according to this technique is thus called an indexed colour image.
  • "True Colours" or "real colours": this representation allows an image to be represented by defining each component (RGB, for red, green and blue). Each pixel is represented by a set comprising the three components, each one coded on a byte, that is, on the whole 24 bits (16 million colours). It is possible to add a fourth component, making it possible to add information regarding transparency or texture; each pixel is then coded on 32 bits.

Weight of an image

To know the weight (in bytes) of an image, it is necessary to count the number of pixels that the image contains, which amounts to calculating the number of cells in the table , that is to say, the height of the table multiplied by its width. The weight of the image is thus equal to its number of pixels multiplied by the weight of each one of these elements.

The following is the calculation for a 640x480 True Colour image:

  • Number of pixels:
    640 x 480 = 307200
  • Weight of each pixel:
    24 bits / 8 = 3 bytes
  • The weight of the image is thus equal to:
    307200 x 3 = 921600 bytes
    921600 / 1024 = 900 KB

(To know the size in KB, it suffices to divide by 1024).
The following are some examples (considering that the image is not compressed):

Image definition Black and white
(1 bit)
256 colours
(8 bits)
65000 colours
(16 bits)
True colour
(24 bits)
320x200 7.8 KB 62.5 KB 125 KB 187.5 KB
640x480 37.5 KB 300 KB 600 KB 900 KB
800x600 58.6 KB 468.7 KB 937.5 KB 1.4 MB
1024x768 96 KB 768 KB 1.5 MB 2.3 MB

This shows the amount of video memory that your graphics card needs depending on the screen definition (number of points displayed) and on the number of colours. The example thus shows that a chart, having at least 4 MB of video memory, is needed in order to show a resolution of 1024x768 in true colour…

Transparency

Transparency is a characteristic that allows the level of opacity of the elements of an image to be defined, i.e. the possibility of seeing through an image, the graphic elements located behind the same.

There are two transparency modes:

  • Simple transparency is applied for an indexed image and consists in defining, one among the colours of the palette, as transparent
  • The alpha-channel-transparency consists in adding a byte defining the level of transparency (from 0 to 255) for each pixel of the image. The process of adding a transparent layer to an image is generally called alpha blending.


Last update on Thursday October 16, 2008 02:43:16 PM.
This document entitled « Computer graphics » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for Computer graphics

Graphics sugestions for a dell optiplex dx260 Hello, I would like some ideas on what to use to get the most out of this computer graphics wise for gaming applications thanks in advance. ericrad1 en.kioskea.net/forum/affich-31045-graphics-sugestions-for-a-dell-optiplex-dx260
Download Pixel Pick The graphic designers, the computer graphics specialists or all persons who work with pictures, use colors. Sometimes instead of recreating a color, it is preferable and quicker to choose a color directly in the screen on another picture. Pixel Pick... en.kioskea.net/telecharger/telecharger-769-pixel-pick
Computer - Graphics card A graphics card, sometimes called a graphics adapter, video card or graphics accelerator, is a computer component which converts digital data into a graphical form which can be displayed on a monitor. The initial role of a graphics card was to send... en.kioskea.net/pc/carte-graphique.php3

Results for Computer graphics

3D Graphics Software3D Graphics Software Art of Illusion Blender Pov Ray Calimax Modeller DAZ 3D Genesis 3D Editor GLC Player ZModeler Professional 3D computer-generated imagery created by studios like “Warner Bros” or “Pixar” are generated... en.kioskea.net/faq/sujet-245-3d-graphics-software
What is AGP and how does it work?What is AGP and how does it work? How does it work? Different AGP buses AGP is the short term for Accelerated Graphics Port and is concretely a point-to-point bus. The bus, compatible with IBM computers, is hence used as a Local Bus... en.kioskea.net/faq/sujet-328-what-is-agp-and-how-does-it-work
Changing your desktop background!Changing your desktop background! Desktop background is the image or wallpaper that is being used as background on a computer screen. Wallpaper is the common terms used for designating the graphical interface in Microsoft Windows. Below... en.kioskea.net/faq/sujet-357-changing-your-desktop-background

Results for Computer graphics

Upgrade graphics cardHello, So I’v had been hoping to upgrade my graphics card on my computer. It's an Emachines Model T5254. I'm not entirely sure on dealing with a lot of the hardware stuff so I'm not sure exactly what I have on this computer. I do know... en.kioskea.net/forum/affich-13529-upgrade-graphics-card
Game freezes then computer crashesHello, My computer runs windows XP, and has always been pretty well suited to handle most games. (Dell XPS 400). When I run some games - seems to be directX related. The computer will freeze after just a few minutes, and then go to a blue screen. It... en.kioskea.net/forum/affich-15600-game-freezes-then-computer-crashes
Graphics card is not being recognizedHello, i have been using a ATI radeon xt9800 graphics card for a while now but recently it has been saying that the power cable has not been connected properly, yet it is but when i restart the pc everything goes cool. but now it doesnt work at all so... en.kioskea.net/forum/affich-5384-graphics-card-is-not-being-recognized

Results for Computer graphics

Download GAG Graphical Boot ManagerGraphical Boot Manager is a program management software. The application is launched when your computer starts up and allows you to choose the operating system you choose to use. The main features: - The possibility of booting from nine different... en.kioskea.net/telecharger/telecharger-1752-gag-graphical-boot-manager
Download GAG Graphical Boot ManagerGraphical Boot Manager is a management programs. The application is launche when your computer starts up and allows you to choose the operational system which you would like to use. The main features : - the possibility to booter from nine... en.kioskea.net/telecharger/telecharger-1699-gag-graphical-boot-manager
Download Tight VNCVNC (Virtual Network Computing) is an application customer / waiter allowing to achieve a distant machine graphically across networks, whatever is its operating system. Thanks to VNC, it is possible to achieve a machine of any computer, as soon as... en.kioskea.net/telecharger/telecharger-275-tight-vnc

Results for Computer graphics

Instant messaging world confirms six degrees of separationA computer user in Seoul. A social graph derived from billions of instant messages validates folklore that there are about six degrees of separation between any two strangers on the planet A social graph derived from billions of instant messages... en.kioskea.net/actualites/instant-messaging-world-confirms-six-degrees-of-separation-10582-actualite.php3

Results for Computer graphics

Computer - Cathode Ray Tube monitor (CRT) Most monitors (computer screens) use cathode ray tubes (or CRT for short), which are glass vacuum tubes into which an electron gun emits a flow of electrons guided by an electrical field towards a screen covered in small phosphorescent elements. The... en.kioskea.net/pc/ecran-crt.php3
Video and digital imaging - The GIF format The GIF format (Graphic Interchange Format) is a bitmap (raster) graphic file format developed by Compuserve. There are two versions of this file format developed respectively in 1987 and 1989: GIF 87a supporting LZW compression, interlacing... en.kioskea.net/video/format-gif.php3
Cables and connectors - Mini-DIN connector The 4-pin Mini-DIN connector is used for transmitting analog video in S-Video format: More and more graphics cards these days have an S-Video socket built in, so that the computer's output can be viewed on a television screen. This is why it is... en.kioskea.net/elec/connecteur-prise-mini-din.php3