i am trying to render a QR code (a simple string encoded in it) on my product's UI screen that uses "Silicon Motion 718 driver with support for 32bpp operations". The QR code data is encoded in 8-bit mode, using a offline library that uses v2 QR encoding. am using the lowest level of error checking.
The product's UI on which am trying to render, is using PEG library v1.8.0.
there are several images (buttons, icons etc...) that are globally defined as hardcoded byte arrays in the UI's codebase.
similarly, i have hardcoded my QR code byte array of 625 bytes as type PEGUBYTE & defined a PegBitmap instance using this array.
am defining a PegRect at a position i want to place the rectangle, and dimensions are according to the width of the PegBitmap.
am using the PegRect to define a PegIcon and drawing the object for the attempt to render it on the screen.
But the QR code image is always output as a distorted image on the screen.
my application uses a 256-color palette system and it is a default system palette.
All buttons, icons used in my product are predefined as bitmap arrays.
i do not know how these bitmap arrays were derived, but i think PegImageConvert tool may
have been used (Pls see the screenshot below).
If using this tool might be necessary, i would like to get access to this, as this is currently missing.
PEG Image Convert
i would like to understand what i may be doing wrong here.
Hi @ManikandanR
May i ask do you use GUI GUIDER for development? and which chip do you use?
BR
Harry