Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    4

    help image zoom in or zoom out

    Right now, I am making viewer application and i have trouble image with big resolution. I want my viewer can be zoom in or zoom out if the resolution is too
    big but i don't know how to make it..... Is it possible to make zoom in or out for image object? I need help for all of you guys. Thanks

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    ok, heres a quick functions to zoom your image

    place this in globals
    Code:
    function ZoomImage(ImageObject,Step)
    	Image.SetSize(ImageObject, Image.GetSize(ImageObject).Width+Step, Image.GetSize(ImageObject).Width+Step );
    end

    Example Call: set image object name and zoom step size

    Zoom In
    Code:
    ZoomImage("Image",+5)
    Zoom Out
    Code:
    ZoomImage("Image",-5)
    Last edited by RizlaUK; 01-21-2008 at 06:43 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    May 2007
    Location
    New Jersey
    Posts
    144
    I tryed your script and all but when I put in the zoom in script I get an error that says: Unexpected symbol near '+'. The zoom out works fine.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    Sorry, that was due to a last min change, just remove the "+"

    Zoom In:
    Code:
    ZoomImage("Image",5)
    Zoom Out
    Code:
    ZoomImage("Image",-5)
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Jan 2008
    Posts
    4
    Thanks RizlaUK for your help

    For correction :

    function ZoomImage(ImageObject,Step)
    Image.SetSize(ImageObject,Image.GetSize(ImageObjec t).Width+Step,Image.GetSize(ImageObject).Height+St ep);

    end

Similar Threads

  1. FreePlugin: Splash Image Transition Engine DLL
    By RizlaUK in forum AutoPlay Media Studio 6.0
    Replies: 43
    Last Post: 03-26-2008, 08:41 AM
  2. Using slideshow from Windows?
    By Jonas DK in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 12-30-2006, 12:57 PM
  3. Switching pictures with forward/back buttons
    By ilandv in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 08-08-2004, 04:51 PM
  4. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 PM
  5. Making a Thumbnail Image Browser
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts