Flux rss
Bookmark Bookmark & Share
Infografia Infografia Computergraphik Infographie Infografía
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.
Graphics program..in c lang Hello, m having probs in running my computer graphics programs in c language in my pc ....they works in nomal pcs ...may be this is due to 19inch wide screen monitor or due to 64 bit processor in my pc ...can anyone help me.. en.kioskea.net/forum/affich-82253-graphics-program-in-c-lang
Graphics cards - Video cards 2D Accelerator Cards 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... en.kioskea.net/contents/pc/carte-graphique.php3
3D Graphics Software 3D 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 by 3D... en.kioskea.net/faq/sujet-245-3d-graphics-software
8X AGP graphics card - AGP 4X motherboard8X AGP graphics card - AGP 4X motherboard What about my purchase? AGP, established by Intel in the year 1996, has dominated the market for almost 10 years. It has made a continuous improvement both for motherboards and graphics... en.kioskea.net/faq/sujet-1693-8x-agp-graphics-card-agp-4x-motherboard
How to test your computer's power supplyHow to test your computer’s power supply To be able to test your computer’s power supply, you can follow the instructions below: 1. Turn off your power switch and plug it out from the power supply. 2. Remove the cable from the CPU and... en.kioskea.net/faq/sujet-323-how-to-test-your-computer-s-power-supply
Connecting two computers with a USB cable.Connecting two computers with a USB cable. What to choose? How does it work? What to do? If you have to transfer huge files from one PC to another, using a flash disk or burning a CD-ROM can seem like a waste of time. One wise way... en.kioskea.net/faq/sujet-342-connecting-two-computers-with-a-usb-cable
Changing the graphics card on my laptophey there, just asking if i can change the graphics card in my laptop? its just that i have one integrated with 128mb ram and now i want to change it because i cannot play many games on that. hope someone can help me en.kioskea.net/forum/affich-22687-changing-the-graphics-card-on-my-laptop
Graphics programming in cHello Sir, I am a beginner in computer graphics and would like to get some animation programs in Cprogramming.So that I can enhance my knowledge in Computer graphics. So please send me some sample programs like how to fly a bird, motion of a car,... en.kioskea.net/forum/affich-106770-graphics-programming-in-c
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 SiS UniVGA2 Graphic DriverSilicon Integrated Systems Corporation, driver UniVGA2 is a SIS universal Graphic Driver which supports the following graphic chips : SiS650, SiS651, SiSM650, SiS650GX, SiS740, SiS650GL, SiSM741, SiS741GX, SiS741... en.kioskea.net/telecharger/telecharger-1735-sis-univga2-graphic-driver
'Spore' computer game aliens coming to virtual lifeFile photo shows Will Wright, creator of computer game hits such as SimCity and The Sims, and the highly anticipated "Spore," at the Electronic Arts office in Emeryville, California. Alien beings destined to inhabit the "Spore" computer game after... en.kioskea.net/actualites/spore-computer-game-aliens-coming-to-virtual-life-10462-actualite.php3
Amazon yanks Japanese rape computer gameEmployees of Amazon.com in Germany sort books into boxes in the western town of Bad Hersfeld. Amazon has yanked from its virtual shelves a Japanese computer game that lets players simulate raping girls. Online retail giant Amazon has yanked from... en.kioskea.net/actualites/amazon-yanks-japanese-rape-computer-game-12051-actualite.php3
South Korea's free computer game model hits USPeople are pictured playing video games in Seoul, during a cyber game festival. Seoul-based "free-to-play" computer game titan Nexon on Wednesday blasted into the US videogame arena with a "Combat Arms" online first-person shooter title that makes... en.kioskea.net/actualites/south-korea-s-free-computer-game-model-hits-us-10754-actualite.php3
Laptop ComputerRelegated several years ago only to business use, laptop computers now have processing and storage capabilities close to that of desktop computers, and can easily be used for high-tech multimedia purposes (DVD drive, video games, 3D-image processing,... en.kioskea.net/contents/pc/ordinateur-portable.php3
Computer screen or monitorIntroduction to computer monitors A monitor (or screen) is a computer display unit. There are generally said to be two families of monitors: Cathode-ray tube monitors (or CRT for short), which are used with most desktop computers. They are... en.kioskea.net/contents/pc/ecran.php3
Types of computersTypes of computers There are several families of computers, depending on their format: Mainframes, computers which a great deal of computing power, enormous input-output capabilities and high level of reliability. Mainframes are used by large... en.kioskea.net/contents/pc/familles.php3