Related questions
NSImage to NSData, then to UIImage
I am creating a plist from my OSX app that contains some images. I am writing the image by :
[NSKeyedArchiver archivedDataWithRootObject:self.someImage]
Then I am using this plist file as a template for iOS app, but here I can't …
Get the correct image width and height of an NSImage
I use the code below to get the width and height of a NSImage:
NSImage *image = [[[NSImage alloc] initWithContentsOfFile:[NSString stringWithFormat:s]] autorelease];
imageWidth=[image size].width;
imageHeight=[image size].height;
NSLog(@"%f:%f",imageWidth,imageHeight);
But sometime imageWidth, imageHeight …