handling really BIG images
handling really BIG images
- Subject: handling really BIG images
- From: "David Piasecki" <email@hidden>
- Date: Tue, 8 Feb 2005 19:09:22 -0800
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.
Thanks,
David
_______________________________________________
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