Re: Bundled Image scaled down when displayed (drawAtPoint) - Thank you

2011-07-04 Thread Benjamin Dubois
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;

Re: Bundled Image scaled down when displayed (drawAtPoint)

2011-07-03 Thread Quincey Morris
On Jul 3, 2011, at 09:00, Benjamin Dubois wrote: > NSString* imageName = [[NSBundle mainBundle] > pathForResource:@"image1" ofType:@"png"]; >NSLog(@"imageName:%@",imageName); >NSImage* tempImage = [[NSImage alloc] initWithContentsOfFile:imageName]; It's a whole l

Re: Bundled Image scaled down when displayed (drawAtPoint)

2011-07-03 Thread Jens Alfke
On Jul 3, 2011, at 9:00 AM, Benjamin Dubois wrote: > It looks like when I run the app, my bundled image is scaled down to about > 75% of it is actual size. The resolution of the image is probably set to greater than 72dpi. Take a look at it in the Preview app’s Info pane. To fix this, either us

Bundled Image scaled down when displayed (drawAtPoint)

2011-07-03 Thread Benjamin Dubois
Hello, all! Happy 4th of July weekend! I am currently learning Cocoa/Objective C with XCode 4.0.2 and the 10.6 SDK. I had started to learn a few Cocoa bits way back when it first showed up with 10.0 preview (thanks to the student developer program) but ended up spending most of my programming tim