Creating an NSImage from WebView
Creating an NSImage from WebView
- Subject: Creating an NSImage from WebView
- From: Yann Bizeul <email@hidden>
- Date: Wed, 17 Dec 2003 22:00:38 +0100
Hi list.
I'm having trouble when trying to make an Image from a webview. I
started from the point there should be a method to get NSImage from an
NSView, but that soes not seem to be so simple.
First of all, what I need should be "dataWithPDFInsideRect" from
NSView, but I want the *whole* page, not just the visibleRect.
So I tried to go deep into the view hierarchy, inside the NSClipView
documentView: method. And now, the image is weird, cut at top and
bottom, and worth, the text is not displayed the same way (1 word more
on some lines between my image and the WebView on screen.
Is there a magic method to do this ?
Thanks !
--
Yann Bizeul
TYNSOE.ORG -
http://www.tynsoe.org/
Site technique consacri ` MacOS X
Projets :
http://projects.tynsoe.org/
_______________________________________________
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.