The OTA Bitmap format is a monochrome, uncompressed format using one bit per pixel. As the format was designed for cellular phones, there is no standard computer format. It may be stored as a binary file or as hex (usually without spaces) in a text file. Recognized extension is .otb.
Before the image itself there is a header. The header is four bytes wide. A typical example is: 00 48 1C 01. These are:
Other possibilities may be: 00 48 0E 01 (for 72x14 bitmaps), 00 48 0D 01 (for 72x13 bitmaps).
After the header the image itself starts. This example will use the following 72x28 pixel image.
The first 8 pixels, reading right from the top left hand corner are one white (0) followed by seven blacks (1111111), giving the first byte, in Binary, as 01111111.
Converting from the binary 01111111 to hex, results in the first byte that represents the pixels (7F). The next 8 characters are 8 blacks (11111111 or FF) and so on.
When all pixels from the top row are encoded, simply move to the next. There are no markers to indicate a new row, that information is contained in the header.
In the case of an OTA bitmap that is not a multiple of eight pixels in width, a single byte is used to convey information from two lines (e.g. two pixels from the first row and six from the second.) This is not the case in some other formats, so it is important to exercise care when converting between OTA and formats like WBMP.
Here is the result of the image converted to OTA.
Note to review: there is no write support for OTA format in XnView
"Introducing Image Formats". ImageMagick Studio LLC. Archived from the original on 21 March 2012. Retrieved 21 March 2012. https://web.archive.org/web/20120321022307/http://www.imagemagick.org/www/formats.html ↩
"File Viewer for Android – Google Play'de Uygulamalar". https://play.google.com/store/apps/details?id=com.sharpened.androidfileviewer&hl=tr ↩