> I seem to need a way to tell NSImage NOT to double the pixels for me, but I
> don't see any way to do this.
Have you tried my sample code? This part seems to be what you're looking for:
NSBitmapImageRep *bmpImageRep =
[NSBitmapImageRep imageRepWith32bitBuffer:NULL
pixelsWide:size.width * scale
pixelsHigh:size.height * scale
bitmapFormat:0
bytesPerRow:0];
// Setting the user size communicates the dpi.
[bmpImageRep setSize:size];
return bmpImageRep;
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]