PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problems resizing a graphic from large to small....need help

robert_hildebrand · 17 Oct 2003, 01:39 UTC
Hi all,

I have a background bmp image that is 793 x 592, the
display surface that i'm using is 793 x 526. How do I scale the image to look correct? When I display the bmp with a blt operation the image is displayed at an angle. I know this is possible, i'm just not sure how to do it. Do I come up with a ratio of the source size relative to the destination size and feed that to the GDBLTFX structure? Any help would be appreciated.

Also, I'm have an issue with the menu bar on the pocket pc using the current gapidraw api. For some
reason the menu is present when the app starts, however the menu text is not display until i click on the menubar itself, after that everything is fine. I can whip together a quick example if need be. In this case everything looks in order on my end. :-)

Thanks for your help,

Robert
robert_hildebrand · 17 Oct 2003, 16:58 UTC — Never mind.... I solved my scaling issue.
Had to due with my lack of understanding regarding the opendisplay function.
Robert: Why dont you use .png format? I guess it has something to do with the image format.

Your other option is to scale it right away with your graphics editor and see the image diff using the code or the gfx editor. From there you can choose on how will you implement it.

Regards.