288 captures
15 Dec 2005 - 30 Jan 2026
Apr MAY Jun
18
2012 2013 2014
success
fail

About this capture

COLLECTED BY

Organization: Internet Archive

The Internet Archive discovers and captures web pages through many different web crawls. At any given time several distinct crawls are running, some for months, and some every day or longer. View the web archive through the Wayback Machine.

Collection: Wide Crawl started April 2013

Web wide crawl with initial seedlist and crawler configuration from April 2013.
TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20130518132545/http://en.wikipedia.org/wiki/X_BitMap
 



X BitMap

 

From Wikipedia, the free encyclopedia
 

Jump to: navigation, search  
X BitMap
Blarg.xbm.png
Filename extension .xbm
Internet media type image/x-xbitmap,
image/x-xbm
 (both unofficial)
Type of format Image file formats
Extended to XPM

Incomputer graphics, the X Window System uses X BitMap (XBM), a plain text binary image format, for storing cursor and icon bitmaps used in the X GUI.

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 bytes are used to express a single byte of image information.

Contents

Format [edit]

XBM data typically appears in headers (.h files) and consist of a series of static unsigned char arrays containing the monochrome pixel data. They feature one array per image stored in the header.

The following piece of C code exemplifies an XBM file:

#define test_width 16
#define test_height 7
static 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 have two or four #define statements. The first two #defines specify the height and width of the bitmap in pixels. The second two, if they exist, specify the position of any hotspot within the bitmap. (Programmers use a hotspot within the image for bitmapped cursors to define where to position the "pointer" of the cursor, generally at 0,0.)

The image data consists of a line of pixel values stored in a static array. Because a single bit represents each pixel (black or white), 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 display mechanism ignores and discards the extra bits in the last byte of each row.

Support [edit]

A number of web browsers still offer support for displaying XBM images. This is a holdover from the early days of the world wide web, when XBM was the minimal non-proprietary image file format. XBM support was removed from Internet Explorer 6 and Mozilla Firefox 3.6, although it is still supported in some other browsers, including Safari and Opera. The Arena web browser has full support since version 0.3.34 (25 July 1997)[1]

See also [edit]

References [edit]

  1. ^ QingLong, Lu (24 March 1998). "Arena change history". Yggdrasil Computing. Archived from the original on 28 February 2003. Retrieved 3 June 2010. 

Retrieved from "http://en.wikipedia.org/w/index.php?title=X_BitMap&oldid=541381025" 

Categories: 
Graphics file formats
X Window System
Graphics software stubs
Hidden categories: 
Articles needing additional references from July 2009
All articles needing additional references
Use dmy dates from July 2011
 

Navigation menu

 

Personal tools



Create account
Log in
 



Namespaces



Article

Talk
 


Variants








Views



Read

Edit

View history
 


Actions












Navigation




Main page

Contents

Featured content

Current events

Random article

Donate to Wikipedia
 



Interaction




Help

About Wikipedia

Community portal

Recent changes

Contact Wikipedia
 



Toolbox




What links here

Related changes

Upload file

Special pages

Permanent link

Page information

Cite this page
 



Print/export




Create a book

Download as PDF

Printable version
 



Languages




Français

Italiano

Nederlands

Русский

Svenska

Edit links
 





This page was last modified on 1 March 2013 at 01:06.

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. 
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
 


Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Mobile view
 


Wikimedia Foundation
Powered by MediaWiki