Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image
Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image
- Subject: Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image
- From: "Adam R. Maxwell" <email@hidden>
- Date: Thu, 20 Aug 2009 21:42:52 -0700
On Aug 20, 2009, at 2:31 PM, Ben Lachman wrote:
This works pretty well, although I do seem to get a white area where
there would have been a scroller on the right hand side.
Interesting; I hadn't noticed that because of the white border I use.
Drawing the WebView itself seems to fix that problem.
The problem still is that you can't really grab an arbitrary rect of
the rendered canvas which was my hope when accessing the
documentView directly.
I tried messing around with the documentView and saw similar problems
to what you described. If you want an arbitrary rect, I'd guess you
could create a bitmap at the full size of the view and draw it, then
crop that bitmap. Or maybe get the [documentView enclosingScrollView]
and mess with that.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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