Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Posts
    13

    Post How to make image to resize keep aspect ratio

    How to make image to resize keep aspect ratio,
    I found in forum: http://www.indigorose.com/forums/showthread.php?t=7589
    but unfortunately not manage insert to project.

    And project size 1014x713, how to manage resize all project to 790x545,
    on run, if user have 800x600 resolution on screen.

    The project I copy from longedge, thank you.


    Thanks.
    Attached Files
    Last edited by roma123; 08-09-2005 at 03:47 PM.

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    You will need to build two projects for the two different screen sizes. Or you can build one large project like you have and position the buttons according to the size of the screen resolution.

    I have reattached your project with a function I built a while ago that does what you were looking for. The function does not contain a centering function but I had the centering taken care of outside of the function that way it was customizeable per page.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Feb 2005
    Posts
    13
    Thanks TJ_Tigger.

    When I jumping to next or previous picture, its resize current picture
    for 0.5 sec. to size next image and jump to next image.
    Do I have option to avoid this? Thank you!

    Anyone manage to take image to center?
    Thanks.

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Yes, you have a couple of options. You can hide the image perform the resize and reposition and then show the image or you can use two image objects and alternate back and forth between the two. Hiding one then showing the other. With two image objects you could then fade one in and the other out. As far as centering I have added some code to the function that centered the image to the page you could customize this so that it centered it to a particular area of the page.

    I have included the project for you to view with the modifications.

    Tigg
    Attached Files
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  5. #5
    Join Date
    Feb 2005
    Posts
    13
    Thanks TJ_Tigger You are the BEST!
    Last edited by roma123; 08-10-2005 at 08:58 AM.

Similar Threads

  1. Function: Resize an Image to Fit your Project Window
    By Adam in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 06-03-2004, 11:55 AM
  2. Example: Make an Image 'Follow' the Mouse Cursor
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-18-2004, 09:06 AM
  3. 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
  4. Maintain Image Aspect ratio at runtime
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 02-17-2004, 08:12 AM
  5. how to make a image appear.....
    By thugnut in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 08-30-2002, 12:36 AM

Posting Permissions

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