• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: handling really BIG images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: handling really BIG images


  • Subject: Re: handling really BIG images
  • From: "David Piasecki" <email@hidden>
  • Date: Wed, 9 Feb 2005 09:30:41 -0800

Thanks! I didn't realize there was a performance list, but I should have guessed!

I was considering breaking the image up into smaller images and displaying a matrix of image tiles. I thought I heard somewhere that it's more difficult to draw one very large image than it is to draw the same information broken into smaller images. But that's not much in the way of ideas.

Thanks for the advice.

David


On Feb 9, 2005, at 8:15 AM, Dave Camp wrote:

On Feb 8, 2005, at 7:09 PM, David Piasecki wrote:

I've been trying to figure out the best way to deal with displaying really big images in Cocoa. I've got a 140MB PNG file (15k x 13k pixels) that I want to display and move around in and zoom in and out. The image size could be even bigger in the future. Right now I'm using an NSScrollView which contains an NSImageView which has its NSImage object set to my image. Scrolling around is great. Cocoa handles the image well once it's already loaded and displayed. However, every time I want to zoom, it takes about 10 seconds to reload all that data. I thought setting the NSImageView to have the option NSScaleToFit would work since I wouldn't be making a copy of the data every time I zoom; however, I think that's what might still be happening behind the scene since it's taking about the same amount of time.
Perhaps I am going about this the wrong way, so I was hoping people might have suggestions.

You might also ask this question on the performance list. I have seen a number of good ideas posted there about dealing efficiently with large images.


Dave



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >handling really BIG images (From: "David Piasecki" <email@hidden>)
 >Re: handling really BIG images (From: Dave Camp <email@hidden>)

  • Prev by Date: Testing IB, text fields not selectable?
  • Next by Date: Re: spawing a server...
  • Previous by thread: Re: handling really BIG images
  • Next by thread: DOM classes?
  • Index(es):
    • Date
    • Thread