Results 1 to 2 of 2
  1. #1
    toki79 is offline Member
    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Default zooming into canvas - reloading bitmaps in better quality?

    Hi,

    I show a canvas and draw certain bitmaps on it. At start of the app they will be shown very small and I scale the bitmaps to 10px. The user can zoom the canvas. When it gets bigger, the bitmaps will shown bigger as well. But because I had to load them so small, the are don't looking good now.

    What would be a good approach to solve this issue?

    br
    Tobias

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: zooming into canvas - reloading bitmaps in better quality?

    What do you mean "load them so small"? I assume that you load the regular bitmap and draw it scaled, not that you resize the image data and then draw it. You could do the trick of caching a version of the original image that is smaller, but you have to maintain the original image at all times of course.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Java script reloading the page?
    By Flatron911 in forum New To Java
    Replies: 1
    Last Post: 02-22-2012, 08:35 AM
  2. Replies: 1
    Last Post: 02-06-2012, 07:09 AM
  3. Class reloading
    By Supamagier in forum Advanced Java
    Replies: 3
    Last Post: 06-14-2009, 08:49 PM
  4. Modifying and reloading JPanel component
    By gopher in forum AWT / Swing
    Replies: 10
    Last Post: 02-07-2009, 05:15 AM
  5. Zooming Canvas Area
    By Raghavansat in forum AWT / Swing
    Replies: 0
    Last Post: 02-04-2009, 09:35 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
  •