> On Jun 23, 2017, at 8:45 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote:
> 
> the image looks fine, but when I write subData to disk, it has 64 x 64 pixels.

You’re probably running this on a computer with a Retina display, so NSImage 
creates a 2x-resolution backing store by default.

Try creating an NSBitmapImageRep directly, then focus on it and draw.

—Jens
_______________________________________________

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