510-770-1417 | info@reachtech.com

by Reach Technology, a Novanta Company
Support > Frequently Asked Questions > I want to place a bitmap over screen content, like a transparent GIF. That is, I’d like a non-rectangular bitmap. How can I do this?

I want to place a bitmap over screen content, like a transparent GIF. That is, I’d like a non-rectangular bitmap. How can I do this?

Use a transparent bitmap. This feature is only available with high-color versions of firmware; the “vers” command will show the version you are using. To use transparency, create a 24-bit color bitmap with a fixed color for the transparent (non-displayed) pixels. Let’s say you used pure red. In 24-bit terms, this color is hex FF0000 (RRGGBB format). The high color firmware uses RGB565, that is, 5 bits of red, 6 of green, and 5 of blue. So you need to convert the 24-bit color value to 16-bit. In this example, it would be hex F800. Then add the string “.trf800” to the name of the bitmap, and it becomes a transparent bitmap. (The transparency value has to be put in the filename because the .BMP format cannot specify a transparent color value). To get the 565RGB value corresponding to a 24-bit RRGGBB color, use the ‘S’ command to set the fg/bg color in RRGGBB format; the command will respond and show the RRGGBB values and their corresponding RGB565 values.  See the manual section “Working With Bitmaps” for more detail. You can download the manual by locating your module in Product Documentation, then go to Documents.