scaling images

BlitzMax Forums/BlitzMax Beginners Area/scaling images

not quite sure what your after.
Do you want a tiny image in the bottom right corner that just expands to be normal scale when it reaches the center of the screen ?

If thats the case.. and this is just off the top of my head..

You have a start scale, and start position.
You have an end scale and end position.

You have a distance to get from start to finish.

So as you move the image you can work out how far it has moved ( distance from start position )

So you have a fraction of distance moved.

You know the total change in scale ( end scale - start scale )

therefore the scale to draw the image is the total scale change * fraction moved + start scale.

Does that make sense ?.. does it even work ?.. dunno.. I not at my home PC to try it.

Cheers
QuietBloke