Wireless Application Protocol Bitmap Format


Wireless Application Protocol Bitmap Format is a raster image file format optimized for early mobile computing devices.
WBMP images are monochrome black and white binary images in which a black pixel is denoted by 0 and a white pixel is denoted by 1. The simple pixel encoding and the small size of the file header mean that the file size is kept to a minimum, enabling fast transmission on slow networks.

File format

Field nameField typeSize Purpose
TypeuintvarvariableType of the image, and is 0 for monochrome bitmaps.
Fixed headerbyte1Reserved. Always 0.
WidthuintvarvariableWidth of the image in pixels.
HeightuintvarvariableHeight of the image in pixels.
Databyte arrayvariableData bytes arranged in rows – one bit per pixel. A black pixel is denoted by 0 and a white pixel is denoted by 1. The pixel order within a byte is MLP = MSB. Where the row length is not divisible by 8, the row is 0-padded to the byte boundary.