Re: Bundled Image scaled down when displayed (drawAtPoint) - Thank you
Re: Bundled Image scaled down when displayed (drawAtPoint) - Thank you
- Subject: Re: Bundled Image scaled down when displayed (drawAtPoint) - Thank you
- From: Benjamin Dubois <email@hidden>
- Date: Mon, 04 Jul 2011 09:01:20 -0700
Jens, Quincey,
Thank you for all the valuable info. My image dpi is indeed higher than 72.
Combining your info, I elected to use, for now:
NSImage* tempImage = [NSImage imageNamed: @"image1"];
NSImageRep *rep = [tempImage bestRepresentationForDevice: nil];
int width = (int)rep.pixelsWide;
int height = (int)rep.pixelsHigh;
[tempImage setSize:NSMakeSize(width, height)];
[tempImage drawAtPoint:point
fromRect: NSZeroRect
operation: NSCompositeSourceOver
fraction: 1.0];
[tempImage release];
Thanks again,
Ben
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden