• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting WebView to JPEG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting WebView to JPEG


  • Subject: Re: Converting WebView to JPEG
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 30 Mar 2007 18:29:35 +0200


First, lock focus on your webview, then use NSBitmapImageRep initWithFocusedViewRect:(NSRect)rect.


And finally, NSBitmapImageRep representationUsingType: NSJPEGFileType properties:....

> I was hoping I could get some help here. What I need to do, is take
> a WebView that I have, create an Image from the WebView, and then
> convert it to
> a JPEG. I have some code that will create a PDF from the WebView,
> and then save it. But the problem I found there was I can not
> reduce the the PDF
> image size to a thumbnail that I need 100x100. I have tried several
> things but have had no luck in figuring that out. So I thought,
> alright maybe a JPEG
> would be easier. But I can not figure out how to get the
> NSBitmapImageRep from the WebView?



_______________________________________________

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


  • Follow-Ups:
    • Re: Converting WebView to JPEG
      • From: development3 <email@hidden>
  • Prev by Date: Re: Key-Value Binding and Threads
  • Next by Date: File - Close menu item grayed out
  • Previous by thread: Re: Converting WebView to JPEG
  • Next by thread: Re: Converting WebView to JPEG
  • Index(es):
    • Date
    • Thread