Wireless Application Protocol Bitmap Format

{{Short description|File format}}

{{Infobox file format

| name = Wireless Bitmap

| extension = {{mono|.wbmp}}

| mime = image/vnd.wap.wbmp

| owner = WAP Forum

| creatorcode =

| genre = Image file formats

| conforms_to =

| containerfor =

| containedby =

| extendedfrom =

| extendedto =

}}

Wireless Application Protocol Bitmap Format (shortened to Wireless Bitmap and with file extension .wbmp) 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.{{cite web |title=WAP Wireless Application Environment Specification Version 1.1 |url=https://www.wapforum.org/what/technical/SPEC-WAESpec-19990524.pdf |website=wapforum.org |publisher=Wireless Application Protocol Forum Ltd |access-date=29 September 2024 |date=24 May 1999}}

File format

class="wikitable" style="margin: 1em auto 1em auto"
Field name

!Field type

!Size (in bytes)

!Purpose

Type

|uintvar

|variable

|Type of the image, and is 0 for monochrome bitmaps.

Fixed header

|byte

|1

|Reserved. Always 0.

Width

|uintvar

|variable

|Width of the image in pixels.

Height

|uintvar

|variable

|Height of the image in pixels.

Data

|byte array

|variable

|Data 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 (most left pixel) = MSB (most significant bit). Where the row length is not divisible by 8, the row is 0-padded to the byte boundary.

References

{{reflist}}