Re: handling really BIG images
Re: handling really BIG images
- Subject: Re: handling really BIG images
- From: Dave Camp <email@hidden>
- Date: Wed, 9 Feb 2005 08:15:39 -0800
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