Re: Screenshot of Website
Re: Screenshot of Website
- Subject: Re: Screenshot of Website
- From: Oleg Kibirev <email@hidden>
- Date: Sat, 2 Jun 2007 09:50:52 -0700
Well, this is not really webkit-specific. Any NSView can be captures
as an image using - (NSData *)dataWithPDFInsideRect:(NSRect)aRect or
- (void)displayRectIgnoringOpacity:(NSRect)aRect inContext:
(NSGraphicsContext *)context. The later case is more flexible, but
the context will need an affine transform applied first if the view
is flipped, as the WebKit one probably is.
Oleg
On Jun 2, 2007, at 8:14 AM, Marcus S. Zarra wrote:
Yes you can with WebKit. You just need to load up the webpage into
a webkit view (offscreen preferably) and when it is done, draw it
into an image. The open source application Paparazzi! <http://
www.derailer.org/paparazzi/> does this as well as the closed source
application Headdress <http://headdress.twinsparc.com>.
Marcus S. Zarra
Zarra Studios LLC
www.zarrastudios.com
Simply Elegant Software for OS X
On Jun 2, 2007, at 8:51 AM, haym37 wrote:
Hi,
Is it possible to take a screenshot (or image) of a website via
Cocoa? An example of what I'm talking about is what Alexa.com
does at the top left of the traffic ranking pages, such as at:
http://www.alexa.com/data/details/traffic_details?
url=google.com . This could perhaps be done through WebKit, or
another way.
Any help would be appreciated. Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40oracle.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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