PocketMatrix forums

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

Problems with high-res bitmap and painting it.

Hi,

Im currently developing a game specifically for the tapwave zodiac and have used the TwGfx libs in the psat but have had memory problems with them so I decided to use window. It is going great and I have been able to paint a bitmap to the screen but since its hi-res, all of the bitmap isn't showing.

The bitmap is 480x320 (The zodiac's screen size) but their coordinate system goes by 240x160 so only part of the bitmap is shown (shown in the attachment).

How can I get it so that the full bitmap (hi-res) shows?
Attachments:
screen00.jpg
Your talking about a stretch blit to change the size of the bmp. It makes no sense to scale the bitmap dynamically at run-time - you should prescale it to the target resolution whenever possible.

However if you must scale it real-time then you can use a simple algorithm that only renders selective pixels. That is similar to a line drawing algorithm in its interpolation. If you want higher quality scaling then use bilinear filtering, which looks great but is pretty CPU intensive.

Dan East