Getting bitmaps into the GLK12232
Posted: Sun Apr 02, 2006 2:22 pm
Three related questions:
1. Am I misusing the bitmap editor in mogd.exe, or is it buggy? I've got the resolution configured as 122x32 (which is correct for my GLK12232-25), but the 'Drawing tool' canvas is always 244x64 (or something close to that, as reported by the mouse position.) When I import a 122x32 monochrome .bmp, it fills the canvas (i.e. each pixel in the image file corresponds to a 2x2 block of pixels on the canvas.) I've verified the image file dimensions in other tools (The Gimp, paint.exe, various bitmap viewers) so I don't think it's malformed or corrupted.
Anyway, if I upload the image while the brush width is set to 1, it writes the upper-left quarter of the canvas to the LCD, and then continues writing data from the other quarters so the display winds up garbled and only vaguely resembling the original image. If I set the brush width to 2 and upload, I get a miniaturized version of the entire bitmap in the left half of the display and blank space in the right half. If I select larger brush sizes I get correspondingly smaller copies of the image and larger regions of empy space on the LCD. How does one get a 122x32 image uploaded as a 122x32 image? Is there a way to force the canvas to remain 122x32? I'm running Windows XP SP2 and the latest mogd from http://www.matrixorbital.ca/software/so ... aphic/MOGD; the display is a GLK12232-25-WBL with PCB revision 2.00.
2. Why does the technical manual for this display differentiate between the 'saved' and 'on-the-fly' bitmap formats? (see pages 11 and 12 of http://www.matrixorbital.ca/manuals/GLK ... BL_200.pdf ) I understand the difference between the formats (column-major vs. row-major encoding), but I don't see any commands that expect data in the on-the-fly format. Is there an undocumented command that accepts an on-the-fly bitmap and renders it at a given location? For example, does the 'upload preview' button in mogd.exe use such a command instead of plotting individual pixels?
3. Are there any undocumented commands that XOR the screen with a bitmap instead of simply filling it with the bitmap? Does MO make any displays that support this, or have plans to create a firmware update with such a command?
1. Am I misusing the bitmap editor in mogd.exe, or is it buggy? I've got the resolution configured as 122x32 (which is correct for my GLK12232-25), but the 'Drawing tool' canvas is always 244x64 (or something close to that, as reported by the mouse position.) When I import a 122x32 monochrome .bmp, it fills the canvas (i.e. each pixel in the image file corresponds to a 2x2 block of pixels on the canvas.) I've verified the image file dimensions in other tools (The Gimp, paint.exe, various bitmap viewers) so I don't think it's malformed or corrupted.
Anyway, if I upload the image while the brush width is set to 1, it writes the upper-left quarter of the canvas to the LCD, and then continues writing data from the other quarters so the display winds up garbled and only vaguely resembling the original image. If I set the brush width to 2 and upload, I get a miniaturized version of the entire bitmap in the left half of the display and blank space in the right half. If I select larger brush sizes I get correspondingly smaller copies of the image and larger regions of empy space on the LCD. How does one get a 122x32 image uploaded as a 122x32 image? Is there a way to force the canvas to remain 122x32? I'm running Windows XP SP2 and the latest mogd from http://www.matrixorbital.ca/software/so ... aphic/MOGD; the display is a GLK12232-25-WBL with PCB revision 2.00.
2. Why does the technical manual for this display differentiate between the 'saved' and 'on-the-fly' bitmap formats? (see pages 11 and 12 of http://www.matrixorbital.ca/manuals/GLK ... BL_200.pdf ) I understand the difference between the formats (column-major vs. row-major encoding), but I don't see any commands that expect data in the on-the-fly format. Is there an undocumented command that accepts an on-the-fly bitmap and renders it at a given location? For example, does the 'upload preview' button in mogd.exe use such a command instead of plotting individual pixels?
3. Are there any undocumented commands that XOR the screen with a bitmap instead of simply filling it with the bitmap? Does MO make any displays that support this, or have plans to create a firmware update with such a command?