Results 1 to 5 of 5
  1. #1
    Lemmy Winks is offline Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    Default Simple java applet zoom question

    Hi in my simple applet i have a large image on a panel which i have drawn over in java. If i zoom in on this image will the graphics i drew on the image stay on the same part of the picture and stay the same scale as the picture, or will the graphics stay the same size and place on the panel while only the picture itself zooms?

    Thanks

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Simple java applet zoom question

    It depends on just how you zoom in on the image and how you've drawn on it. The devil's in the details.

    [Hint: please tell us how you plan to do this zoom and how you're showing your image and how you draw on the image. A bit of code would help much too, best would be an SSCCE].
    Last edited by Fubarable; 07-02-2012 at 02:50 AM.

  3. #3
    Lemmy Winks is offline Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    Default Re: Simple java applet zoom question

    So its totally possible if im just drawing a shape with the graphics method/object or whatever it is.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Simple java applet zoom question

    Quote Originally Posted by Lemmy Winks View Post
    So its totally possible if im just drawing a shape with the graphics method/object or whatever it is.
    It is, but again, how are you doing everything?

  5. #5
    Lemmy Winks is offline Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    Default Re: Simple java applet zoom question

    Im just creating shapes and putting them over the image on a GUI panel. I havnt started yet this question is more me finding out if zooming properlly is possible, if it wasnt i would then have to use a fixed image size and my program would be differnt, better to find out now instead of doing all the work only to find out i have to change abunch of stuff.

Similar Threads

  1. A (very) simple question about NumberFormat in Applet
    By calnastic in forum New To Java
    Replies: 2
    Last Post: 06-17-2011, 03:34 AM
  2. Replies: 13
    Last Post: 08-30-2010, 07:55 PM
  3. How to Zoom in and Zoom out TYPE_USHORT_565_RGB image
    By Santhoshkumarp in forum AWT / Swing
    Replies: 0
    Last Post: 08-07-2010, 02:39 PM
  4. Java Zoom in and Zoom out?
    By ps20090 in forum Java Applets
    Replies: 2
    Last Post: 09-18-2009, 12:04 PM
  5. I need simple java applet
    By silvia in forum Java Applets
    Replies: 4
    Last Post: 01-27-2008, 07:50 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
  •