XBM

XBM

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 XPM (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.

Ce format est avec GIF le premier à avoir été utilisable dans les pages web. Bien qu'il soit désormais obsolète, il est encore supporté par les navigateurs web, excepté Internet Explorer, duquel il a été enlevé.

Référence

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

Ce document provient de « X BitMap ».

Wikimedia Foundation. 2010.

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

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

Regardez d'autres dictionnaires:

  • XBM — Die Abkürzung XBM steht für: Mittelbretonisch, eine historische Sprache nach ISO 639 3, siehe bretonische Sprache X BitMap, ein vom X Window System stammendes, ehemals verbreitetes Dateiformat für monochrome Bitmapgrafiken im Internet, siehe auch …   Deutsch Wikipedia

  • XBM — Xbox Magazine (Community » Media) * Barcode Image format (Computing » File Extensions) * X Window 1 bit text BitMap graphics (Computing » File Extensions) …   Abbreviations dictionary

  • XBM — X11 Bitmap …   Acronyms

  • XBM — ● ►en sg. m. ►GRAPH X BitMap. Format d image noir et blanc propre à X Window. On le rencontre rarement …   Dictionnaire d'informatique francophone

  • xbm — ISO 639 3 Code of Language ISO 639 2/B Code : ISO 639 2/T Code : ISO 639 1 Code : Scope : Individual Language Type : Historical Language Name : Middle Breton …   Names of Languages ISO 639-3

  • XBM — X11 Bitmap …   Acronyms von A bis Z

  • XBM — Format aus der UNIX Welt für ein zweifarbiges (monochromes) BitMap, beispielsweise um Programmsymbole (Icons) oder Hintergründe zu speichern. Für größere Bilder ist dieses Format ungeeignet, weil zuviel Speicherplatz verbraucht wird. Bitmap …   Online-Wörterbuch Deutsch-Lexikon

  • XBM — abbr. eXtended Basic Mode …   Dictionary of abbreviations

  • .xbm — comp. abbr. X Windows Bitmaps (file name extension) (black and white) …   United dictionary of abbreviations and acronyms

  • X BitMap — Infobox file format name = X BitMap extension = .xbm mime = image/x xbitmapunofficial image/x xbmunofficial owner = creatorcode = XBM genre = Image file formats containerfor = containedby = extendedfrom = extendedto = XPMIn computer graphics, the …   Wikipedia

Share the article and excerpts

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