PocketMatrix forums

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

scaling by different amounts in difference axis

I realise that using rotate scale you can scale a whole image

is it possible to scale the image by different amounts in different axis. I dont need to rotate the image in question, just need to scale it by different amounts in different directions
Hi,

Unfortunately not possible.. But it would be a nice feature addition.. :)
indeed ;)

here's hoping for a future version :D
muff · 23 Jun 2003, 14:31 UTC — scaling in 2 directions
actually discovered today that the destination rect can be used to scale things in different directions

if the blit function you are using uses a destination rectangle, then the image you are blitting is scaled to fit it

this doesn't work on functions without a destination rectangle though as they make assumptions (rightly so) about the destination size being the same as the source

just thought I'd pass it on anyway

muff
What exactly are you trying to do? Are you trying to create a "Nintendo Mode 7"?
:)

that was one of the usages

there are several others, such as characters squashing when jumped on for example

the question wasn't directed at a particular usage, more a general question