
Step 1: Load an Image.
Step 2: Place 2 buttons, say Zoom_In and Zoom_Out
Step 3:
/* When-Button-Pressed trigger of Zoom_In */
Image_Zoom('Image', zoom_in_factor, 2);
--This procedure enlarges the image 2 times.
Step 4:
/* When-Button-Pressed trigger of Zoom_Out */
Image_Zoom('Image', zoom_out_factor, 2);
--This procedure reduces the image 2 times.
Caution: If you specify high value for Zoom_Factor (eg. 100), it may cause the application to run out of memory.
No comments:
Post a Comment