On Jul 29, 2013, at 7:15 AM, Darren Wheatley wrote:

> I've written a screenshot method to grab the map for inclusion in a print 
> view. This is largely based on the examples here:

> I've tried the three methods shown in the SO post, and only the 
> CGWindowListCreateImage works correctly in my app.
> 
> The problem I have is that the quality of the resultant image is poor, which 
> is exacerbated when the image is resized for printing.

>    return [[[NSImage alloc] initWithCGImage:cgimg size:[aView bounds].size] 
> autorelease];

Have you tried passing NSZeroSize for the size?  Are you on a Retina display?

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to