Re: image size problem
Re: image size problem
- Subject: Re: image size problem
- From: Jens Ayton <email@hidden>
- Date: Sat, 26 Jul 2008 15:34:29 +0200
On Jul 26, 2008, at 14:09, MAnish Billore wrote:
I creating an image and checking its size.
I am getting image size is 1440x1920 but it is different from the
actual
size that is 2560 × 1920.
NSImage *image = [NSImage imageRepWithContentsOfFile:fullPath];
NSSize imgSize=[image size];
NSLog(@" size %fx%f" , imgSize.height,imgSize.width);
This question should be on Cocoa-dev, but: -[NSImage size] returns
dimensions in points, not pixels. It is possible that your image has a
resolution of 128x72 pixels for some reason. If you need the size in
pixels, look for a bitmap rep in the image and use -pixelsWide and -
pixelsHigh.
--
Jens Ayton
Today, we celebrate the first glorious anniversary
of the Information Purification Directives.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden