Thumbnail with 2 NSView twins
Thumbnail with 2 NSView twins
- Subject: Thumbnail with 2 NSView twins
- From: Leonardo <email@hidden>
- Date: Fri, 21 Nov 2014 14:58:36 +0100
- Thread-topic: Thumbnail with 2 NSView twins
I would like to create a page thumbnail as the one I have seen on the
Apple's application Page. Any time I modify an object on the page, the
thumbnail page gets immediatelly updated.
Actually I simply get a 256 x 256 image from the NSView with
displayRectIgnoringOpacity. It works. The point is that it's slow and the
thumbnail has fixed size. So if the user enlarges the width of the
thumbnails list, the fixed images get pixelated. Bigger thumbnails get a
longer time to be created.
I tried to get the a thumbnail pdf image with dataWithPDFInsideRect. It's
slow too at capturing the image. The images are not longer pixelated but in
case of pdf with HR images, it slows down the scolling of the list.
So I thought to create a kind of twin thumbnail NSView, where the NSView
page gets drawn in real time. The result is that the page gets drawn twice
and that slows down the application.
Is any way I can just draw once the page and automatically get a fast and
real time image in the thumbnail?
Regards
-- Leonardo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden