Large view to NSBitmapImageRep
Large view to NSBitmapImageRep
- Subject: Large view to NSBitmapImageRep
- From: Gideon King <email@hidden>
- Date: Thu, 1 May 2003 21:46:12 +1000
I am trying to get a very large view (2000x4000 pixels) into an
NSBitmapimageRep - the view is in a scrollview, so I can't get the full
image with initWithFocusedViewRect as I just get the bit that's
displayed on screen.
I can get the PDF data using dataWithPDFInsideRect, but I'm not sure
how to turn that into an NSBitmapImageRep - all the methods I've tried
go through the cache mechanism somewhere along the way, and I get the
message "can't cache image". If I create an image and add a pdf rep
that has been created from the data and try to get the tiff
representation to create a bitmap rep with the image data, the tiff
representation is empty.
I have tried to create an image, lock focus on it and draw the view
into it, but that creates a cached image rep, which won't cache because
it is too big. I have tried setting data retained to YES, but that
still doesn't seem to help.
From the posts on the list, I see people have discussed some of the
same issues before, but there doesn't seem to be an answer that works
with large images, so any suggestions would be greatly appreciated.
Thanks
Gideon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.