CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Posts
    5

    Zoom on applet image

    I am using an image with applet so that it is not downloadable .

    But I am not able to add zoom in / out functionality for that image .

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Zoom on applet image

    There are a few ways of doing this, such as the Image class has a getScaledInstance() method which you can use to scale the image or the Graphics2D class has a scale(..) method which you can use to set a scaling transform.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured