WBMP images are monochrome (black & white) so that the image size is kept to a minimum. A black pixel is denoted by 0 and a white pixel is denoted by 1.
For colored images, WAP supports the Portable Network Graphics format.
|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. Where the row length is not divisible by 8, the row is 0-padded to the byte boundary.|
Row1 - bwb
Row3 - bwb
becomes Octet 5-7: 3 bits for data then Padding (8-3=5)
Row2 - wbw
Octet 1: 00000000 (WBMP type)
Octet 2: 00000000 (Fixed header)
Octet 3: 00000011 (Width) = 3
Octet 4: 00000011 (Height) = 3
Octet 5: 010 00000 (Row 1)
Octet 6: 101 00000 (Row 2)
Octet 7: 010 00000 (Row 3)
Row3 - bwb
Octet 5-7: 3 bits for data then Padding (8-3=5)
The WAP scrap continues; The potential of WAP is vast, predicts Tom Dibble. But that's not to say there aren't some teething problems to knock out first.(Technology Information)
Mar 30, 2000; Round 2 and seconds away. Welcome to the second round of the new media prize-fight, where we still find WAP forced to play...