X BitMap

X BitMap

X BitMap, abrégé XBM, est un format d'image numérique monochrome originellement conçu pour le système X Window, notamment pour les images de pointeur et d'icône.

Le format XBM décrit les images en langage C, ce qui permet à un programmeur d'intégrer très facilement des images XBM à un logiciel écrit en C. L'image d'un pointeur est écrite comme suit au format XBM :

Texte d'un pointeur au format XBM (voir Fichier:Pointeur.xbm) :

#define pointeur_width 11
#define pointeur_height 16
#define pointeur_x_hot 0
#define pointeur_y_hot 0
static unsigned char pointeur_bits[] = {
   0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f,
   0x00, 0x7f, 0x00, 0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0xff, 0x07,
   0x3f, 0x00, 0x33, 0x00, 0x61, 0x00, 0x60, 0x00, 0xc0, 0x00 };

Les deux premières lignes définissent la largeur et la hauteur de l'image (11 par 16). Les deux lignes suivantes sont optionnelles et définissent la position d'un éventuel pixel de pointage dans l'image (coordonnée (0;0) soit en haut à gauche au bout de la flèche). Les dernières lignes contiennent un tableau d'octets (ici représentés par le type unsigned char) dont les bits représentent les pixels de l'image, suivant l'organisation little-endian.

Ce format est avec GIF le premier à avoir été utilisable dans les pages web. Comme il est obsolète, son support est progressivement retiré des navigateurs Web.

Référence

Xlib - C Language X Interface, X Consortium Standard, X Version 11, Release 6.4, chapitre 16.9.


Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article X BitMap de Wikipédia en français (auteurs)

Игры ⚽ Нужно решить контрольную?

Regardez d'autres dictionnaires:

  • Bitmap-Grafik — Bitmap Grafik,   ein Computerbild, bei dem die Bildinformationen punktweise gespeichert sind. Bei Schwarz Weiß Bildern wird jeder Bildpunkt durch genau ein Bit beschrieben; bei Graustufen und Farbbildern sind mehrere Bits für jeden Bildpunkt… …   Universal-Lexikon

  • Bitmap-Format — Bitmap Format,   ein Dateiformat zur Speicherung von Bitmap Grafiken. Ein Pixel eines Bitmaps nimmt je nach Farbtiefe zwischen einem Bit (monochrom, schwarzweiß) und drei Byte (TrueColor mit 16,7 Millionen Farben) Speicherplatz ein. Damit… …   Universal-Lexikon

  • Bitmap-Font —   (Bitmap Zeichensatz, Bitmap Font), Bitmap orientierte Schrift (Bitmap Schrift) …   Universal-Lexikon

  • Bitmap Distribution Format — (BDF)  созданный компанией Adobe формат файлов для хранения растровых шрифтов. Содержимое файла представлено в текстовом виде, удобочитаемом как для человека так и для компьютера. Обычно, BDF используется в UNIX средах. Содержание 1 Введение …   Википедия

  • Bitmap textures — are digital images representing a surface, a material, a pattern or even a picture, generated by an artist or designer using a bitmap editor software such as Adobe Photoshop or Gimp or simply by scanning an image and, if necessary, retouching it… …   Wikipedia

  • Bitmap file — may be a generic term for:* File format for storing raster graphics * Computer file containing a raster graphics imageBitmap file may also refer to:* Windows bitmap, or BMP, a particular graphics file format …   Wikipedia

  • Bitmap format — is:* Generic term for file formats for raster graphics images * Specific term for Windows bitmap (BMP) or X Bitmap (XBM) file format …   Wikipedia

  • Bitmap (disambiguation) — Bitmap is a type of memory organization or image file format used to store digital images.Bitmap may also mean the following:*Bitmap (group), an alternative music band from England …   Wikipedia

  • Bitmap-Schrift — Bitmap Schrift,   Schrift (Font), deren Zeichen aus einem Punktmuster bestehen, also aus einer Bitmap. Eine derartige Schrift eignet sich jeweils nur für ein bestimmtes Ausgabegerät, entweder für den Bildschirm oder für den Drucker. Größe und… …   Universal-Lexikon

  • bitmap Computing — noun a representation in which each item corresponds to one or more bits of information, especially the information used to control the display of a computer screen. verb (bitmaps, bitmapping, bitmapped) represent as a bitmap …   English new terms dictionary

  • bitmap — [bit′map΄] n. Comput. a representation of a graphic image, as a letter or number, as a sequence of bits that generates a corresponding pattern of pixels on a video screen * * * bit map or bit·map (bĭtʹmăp ) n. Computer Science A set of bits that… …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”