X BitMap

X BitMap
A sample XBM file
Filename extension
.xbm
Internet media type
image/x-xbitmap, image/x-xbm[1]
Uniform Type Identifier (UTI)public.xbitmap-image[2]
Type of formatImage file formats
Extended fromC (programming language)
Extended toX PixMap (XPM)

In computer graphics, the X Window System used X BitMap (XBM), a plain text binary image format, for storing cursor and icon bitmaps used in the X GUI.[3] The XBM format is superseded by XPM, which first appeared for X11 in 1989.[4]

Format

XBM files differ markedly from most image files in that they take the form of C source files. This means that they can be compiled directly into an application without any preprocessing steps, but it also makes them far larger than their raw pixel data. The image data is encoded as a comma-separated list of byte values, each written in the C hexadecimal notation, '0x13' for example, so that multiple ASCII characters are used to express a single byte of image information.[5]

XBM data consists of a series of static unsigned char arrays containing the monochrome pixel data. When the format was in common use, an XBM typically appeared in headers (.h files) which featured one array per image stored in the header. The following piece of C code exemplifies the XBM file Blarg displayed in the panel at right:

#define test_width 16
#define test_height 7
static unsigned char test_bits[] = {
0x13, 0x00, 0x15, 0x00, 0x93, 0xcd, 0x55, 0xa5, 0x93, 0xc5, 0x00, 0x80,
0x00, 0x60 };

In place of the usual image-file-format header, XBM files has two or four #define statements. The first two #defines specify the height and width of the bitmap in pixels. The second two, if any, specify the position of any hotspot within the bitmap. (In the case of bitmapped cursors, the "hotspot" refers to the position of the cursor "point", generally at 0,0.)

XBM image data consists of a line of pixel values stored in a static array. Because a single bit represents each pixel (0 for white or 1 for black), each byte in the array contains the information for eight pixels, with the upper left pixel in the bitmap represented by the low bit of the first byte in the array. If the image width does not match a multiple of 8, the extra bits in the last byte of each row are ignored.

Support

Some web browsers support displaying XBM images as a holdover from the early days of the World Wide Web, when XBM was the minimal non-proprietary image file format. The Arena web browser had full support since version 0.3.34 (25 July 1997).[6] XBM support was removed from Internet Explorer 6, Mozilla Firefox 3.6,[7] and WebKit-based browsers.[8] There is a strong indication that Chromium (and therefore, also, Google Chrome) does not support XBM.[9] Documentation for Opera 2.12 and 6.0 indicates that XBM was at least previously supported.[10][11]

Some image viewers/converters, e.g., XnView, FFmpeg and IrfanView, support XBM.[12] A 48×48 XBM can be converted to Ikon and eventually X-Face with Netpbm tools.[13]

Despite having been superseded by the XPM format, XBM is still used by some modern but lightweight window managers like Openbox to define simple button images in a window's title bar, such as the iconify/minimize, restore, and maximize buttons.[14] XBM is also used in embedded processing (microControllers) to display Icons used in GUIs.[15] ImageMagick[16] supports converting images both to and from XBM. GIMP may be used to create or modify images using the XBM format, and also supports converting images to and from the XBM format.

See also

References

  1. ^ .xbm MIME type not registered at IANA
  2. ^ "System-Declared Uniform Type Identifiers". Uniform Type Identifiers Reference. Apple Inc.
  3. ^ Steve Kinzler (2005). "Picons Archive". Retrieved 6 January 2014. picons are in either monochrome XBM format or color XPM and GIF formats
  4. ^ Daniel Dardailler (15 July 1996). "The XPM Story". Colas Nahaboo and Arnaud Le Hors. Archived from the original on 2 January 2014. Retrieved 1 January 2014.
  5. ^ James D. Murray; William van Ryper (April 1996). Encyclopedia of Graphics File Formats, Second Edition. O'Reilly. ISBN 1-56592-161-5. Retrieved 27 February 2014.
  6. ^ QingLong, Lu (24 March 1998). "Arena change history". Yggdrasil Computing. Archived from the original on 28 February 2003. Retrieved 27 February 2014.
  7. ^ "504822 – Remove XBM support from Mozilla". Mozilla. 12 July 2010. Retrieved 22 October 2014.
  8. ^ "Bug 27823 – Remove XBM support". WebKit. 12 January 2010. Retrieved 22 October 2014.
  9. ^ "Issue 372898: Chrome displays broken image icon when given direct link to XBM image". chromium - An open-source project to help move the web forward. 26 June 2014. Archived from the original on 21 December 2014. Retrieved 22 October 2014.
  10. ^ "Opera Software ASA - Opera version history". Opera Software. 5 February 2013. Retrieved 22 October 2014.
  11. ^ "Changelog for Opera 6.0 for Unix TP 1". Opera Software. 26 November 2001. Retrieved 22 October 2014.
  12. ^ "Image Formats". FFmpeg General Documentation. 2014. Retrieved 23 February 2014.
  13. ^ Jeff Dairiki. "Online X-Face Converter". Retrieved 2 March 2014.
  14. ^ "Openbox Theme Documentation". Retrieved 8 October 2014.
  15. ^ olikraus. "U8g2 library reference". GitHub. Retrieved 22 May 2017.
  16. ^ Aseem Kishore (8 May 2010). "Convert Images Between Formats via the Command Line in Ubuntu". Retrieved 22 May 2017.

Read other articles:

Questa voce sull'argomento schermidori francesi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Nicolas Beaudan Nazionalità  Francia Altezza 175 cm Peso 70 kg Scherma Specialità Fioretto Palmarès Competizione Ori Argenti Bronzi Mondiali 3 0 1 Europei 0 1 0 Per maggiori dettagli vedi qui Statistiche aggiornate al 21 luglio 2010 Modifica dati su Wikidata · Manuale Nicolas Beaudan (13 dicembre 1975) è un ex schermidore francese, special...

село Малозалісся Автобусна зупинка зі мозаїчним панно в МалозаліссіАвтобусна зупинка зі мозаїчним панно в Малозаліссі Країна  Україна Область Хмельницька область Район Кам'янець-Подільський район Громада Гуменецька сільська громада Основні дані Населення 135 Площа ...

You can help expand this article with text translated from the corresponding article in French. Click [show] for important translation instructions. View a machine-translated version of the French article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedia. Consider adding...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2021) دور السيداتمعلومات عامةالصنف الفني فيلم أكشن — فيلم وثائقي — فيلم رياضة تاريخ الصدور 2012 اللغة الأصلية الفرنسية — الولوفية البلد السنغالفرنسا الطاقمالمخ...

2010 single by Brandy, Ray J and Willie NorwoodTalk to MeSingle by Brandy, Ray J and Willie Norwoodfrom the album A Family Business ReleasedOctober 22, 2010Genre R&B soul Length4:51LabelSaguaro RoadSongwriter(s) William Ray Norwood Jr., Scott Parker Tommy Niblack Producer(s)Scott Shavoni ParkerBrandy singles chronology Long Distance (2008) Talk to Me (2010) It All Belongs to Me (2012) Ray J singles chronology Last Wish(2010) Talk to Me(2010) Turnin' Me On(2011) Talk to Me is a son...

Departamento del Trabajo de los Estados Unidos United States Department of Labor  (inglés) Sello del Departamento LocalizaciónPaís Estados UnidosCoordenadas 38°53′35″N 77°00′52″O / 38.893055555556, -77.014444444444Información generalSigla USDOLJurisdicción  Estados UnidosTipo MinisterioDepartamentos Ejecutivos Federales de Estados UnidosSede Edificio Frances Perkins, Noroeste de Washington D. C., Washington D. C., Estados UnidosOrganizaciónSecret...

Genus of plants This article is about a genus of flowering plants in the family Rubiaceae. For the Copeland album, see Ixora (album). This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Ixora – news · newspapers · books · scholar · JSTOR (April 2018) (Learn how and when to remove this template message) Ixora Chi...

Australian people of Turkish descent Turkish AustraliansAvustralya'daki TürklerSon of Turkish Gallipoli veteran at the Shrine of Remembrance in MelbourneTotal population 59,402 (2006 census)[1] 38,568(2021 census) (born in Turkey) [2] 150,000 Turkish Australians (1994 estimate by The Age[3]) 300,000 Turkish Australians (2003 estimate by the Prime Minister of Malaysia Mahathir Mohamad[4]) 300,000 Turkish Australians in Melbourne alone (2013 estimate by Louise A...

Línea 2 Estación CapuchinosDescripciónTipo MetroSistema Metro de CaracasInauguración 4 de octubre de 1987Ampliación Futuros Proyectos: Zoológico-La Rinconada / Bello Monte-WarairarepanoInicio Las Adjuntas (Patios y talleres del Metro de Caracas & Los teques) / ZoológicoFin El SilencioLíneas Zoológico-Caricuao-Mamera-Antimano-Carapita-La Yaguara-La Paz-Artigas-Maternidad-Capuchinos-El SilencioParadas principales Capuchinos-El Silencio-Las Adjuntas-ZoológicoEstaciones principales ...

Our Lady of Grace Cathedral in Nicosia with the Lebanese and Vatican flags Our Lady of Grace Cathedral is the main Maronite church of the city of Nicosia, in Cyprus, and is the cathedral of the Maronite Catholic Archeparchy of Cyprus. History The first cathedral was dedicated to St. John, but during the Ottoman occupation it was turned into a mosque. The Lebanese Maronite community erected the church of Santa Croce, later entrusted to the Franciscans, and the current church of Our Lady of Gra...

2018 film by Ben Young ExtinctionFilm release posterDirected byBen YoungScreenplay by Spenser Cohen Brad Kane Story bySpenser CohenProduced by David Hoberman Nathan Kahane Todd Lieberman Starring Michael Peña Lizzy Caplan Mike Colter Amelia Crouch Erica Tremblay Israel Broussard Lex Shrapnel Emma Booth CinematographyPedro LuqueEdited byMatthew RamseyMusic byThe Newton BrothersProductioncompanies Good Universe Mandeville Films Distributed byNetflixRelease date July 27, 2018 (20...

2007 video game 2007 video gameDef Jam: IconDeveloper(s)EA ChicagoPublisher(s)Electronic ArtsPlatform(s)Xbox 360, PlayStation 3ReleaseXbox 360NA: March 6, 2007AU: March 15, 2007EU: March 23, 2007JP: June 21, 2007PlayStation 3NA: March 6, 2007AU: March 22, 2007EU: March 23, 2007KOR: June 15, 2007JP: June 21, 2007Genre(s)FightingMode(s)Single-player, online multiplayer Def Jam: Icon is a fighting video game, the third in Electronic Arts's Def Jam-licensed hip-hop video game series. The game was...

The Faction Collective company logo The Faction Collective (also known as Faction Skis) is a manufacturer of freeride skis, poles and skiing-related products,[1] based in Verbier, Switzerland.[2] The company's products are sold in over 31 countries through their website and through distributors.[3] History Faction Skis was founded by a group of skiers in 2006 in Verbier, Switzerland.[4] In 2013, Faction Skis teamed up with French professional skier Candide Thov...

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Februari 2023. SchaerbeekSchaarbeek Stasiun kereta apiLokasiPlace Princesse Elisabeth / Prinses-Elisabethplein, SchaerbeekKoordinat50°52′41″N 4°22′46″E / 50.87806°N 4.37944°E / 50.87806; 4.37944Koordinat: 50°52′41″N 4°22′4...

Ilustrasi lubang kelinci wiki untuk kaos Lubang kelinci wiki adalah jalan belajar yang dilalui pembaca dengan cara menavigasi dari satu topik ke topik lain saat menjelajahi Wikipedia dan wiki lainnya. Nama lain dari konsep ini adalah lubang hitam wiki[1] dan lubangwiki.[2] Metafora sebuah lubang berasal dari Alice's Adventures in Wonderland, saat Alice memulai petualangannya dengan mengikuti Kelinci Putih ke dalam liangnya. Ketika menonton video di luar Wikipedia, banyak orang...

1987 video game 1987 video gameMickey MousecapadeNorth American box artDeveloper(s)Hudson SoftPublisher(s)JP: Hudson SoftNA: CapcomComposer(s)Takeaki KunimotoPlatform(s)Nintendo Entertainment SystemReleaseJP: March 6, 1987NA: October 1988Genre(s)PlatformMode(s)Single-player Mickey Mousecapade, released in Japan as Mickey Mouse: Adventures in Wonderland[a], is a platform video game based on Disney's Mickey Mouse franchise. It was developed and published by Hudson Soft originally in 198...

True Crime Network affiliate in Chattanooga, Tennessee WDSI-TVChattanooga, TennesseeUnited StatesChannelsDigital: 14 (UHF)Virtual: 61BrandingTrue Crime NetworkComet (on DT2)ProgrammingAffiliations61.1: True Crime Network61.2: CometOwnershipOwnerNew Age Media, LLC(New Age Media of Tennessee License, LLC)OperatorSinclair Broadcast Group (select engineering functions via LMA)Sister stationsWFLI-TV, WTVCHistoryFirst air dateJanuary 24, 1972 (51 years ago) (1972-01-24)Former call sig...

Indian philosophical tradition within Jainism Part of a series onJainism Jains History Timeline Index Philosophy Anekantavada Cosmology Ahimsa Karma Dharma Mokṣa Kevala Jnana Dravya Tattva Brahmacarya Aparigraha Gunasthana Saṃsāra EthicsEthics of Jainism Mahavratas (major vows) Ahiṃsā (non-violence) Satya (truth) Asteya (non-stealing) Brahmacarya (chastity) Aparigraha (non-possession) Anuvratas (further vows) Sāmāyika Sallekhana Jain prayers Bhaktamara Stotra Micchami Dukkadam Ṇam...

Gedung Balai Kota Lama Padang dan Plein van Rome sekitar tahun 1900. Tribun bernama Balairung yang terdapat di Lapangan Imam Bonjol, menghadap ke timur. Lapangan Imam Bonjol (sebelumnya bernama Plein van Rome, bahasa Belanda: Stadion Roma) adalah sebuah alun-alun dan ruang terbuka hijau (RTH) di pusat Kota Padang, Sumatera Barat. Lapangan ini berbatasan dengan Jalan Sudirman, Padang di sebelah barat. Dulunya, kawasan sekitar lapangan dikelilingi berbagai kantor dan bangunan penting, salah sat...

A singer accompanies himself with an onavillu, amplified with microphones. Traditional folk music is transmitted in performance; as such, it adapts to audience tastes and available technologies. In the study of folklore, the folk process is the way folk material, especially stories, music, and other art, is transformed and re-adapted in the process of its transmission from person to person and from generation to generation. The folk process defines a community—the folk community—in and th...