cocoa - CGImageGetWidth returns different size then actual image -
Hello, I have been reading a lot of images in my app and when I load the files, I get CImMaggetWidth and CGIMaggetHight Use images to get shape
Although this does not return the right values all the time.
For example, if I have an image whose size is 114x14, these works 126x22 or something like that random.
The odd part is that it does not happen all the time (changes to build from the build), but it is going to be the same group of images.
P> So I have some sort of coding error that I do not know about or there are some settings in the images that handle them differently.
Does anyone know what might possibly be the reason for such behavior?
Thanks
Check image resolution Some image formats are standard 72 pixels per inch Except for anything else, allow pixel-per-inch.
Comments
Post a Comment