PDA

View Full Version : ZOOOOMING


Mike Halliday
11-29-2007, 08:10 PM
Following on from post http://www.arianesoft.ca/e107_plugins/forum/forum_viewtopic.php?8093

Here is the code to do nearly all that Andrew requested.

Heres' what it does.

Take the screen and copy the contents under the stylus location to a new surface but multiply it by 2 before writing.

Write this new surface back to the screen buffer at the current stylus position.

Voila - instant magnification

Please feel free to add to it and make it either a procedure or a class that we can all use.

(Supplying source code because some members don't seem to be able to run my .exe files) :([br]1196367052_671_FT0_automag.zip

Mike Halliday
11-29-2007, 09:46 PM
I have just compiled this for WM6 and it seems to work, although on my 195MHz cpu its real slow! :(

PointOfLight
11-30-2007, 04:32 PM
This was a very nice example.* Thank you!

Mike Halliday
11-30-2007, 04:47 PM
You are all welcome to my code snippets - Thats why I keep releasing them! :D