Re: Problem with NSImage and .PNG file

2008-08-16 Thread Rainer Brockerhoff
At 03:26 -0700 16/08/08, [EMAIL PROTECTED] wrote: >From: Matt <[EMAIL PROTECTED]> >Date: Fri, 15 Aug 2008 13:54:32 -0700 >Message-ID: <[EMAIL PROTECTED]> >Subject: Problem with NSImage and .PNG file >Message: 4 > >I have an image that is 7200x32 pixels, which is

Re: Problem with NSImage and .PNG file

2008-08-15 Thread Graham Cox
PNG stores its resolution in terms of pixels per metre (If I recall correctly) and that doesn't always fit exactly into a whole number of dots per inch, which is what Quartz uses. Quartz is being as precise as it can in honouring the PNG resolution, but what you really want is to scale the

Problem with NSImage and .PNG file

2008-08-15 Thread Matt
I have an image that is 7200x32 pixels, which is used to store a series of 32x32 tiles. When drawing from this NSImage, the further towards the end of the image (right edge) the subrect goes, the blurrier it gets drawn. Changing the original image file to a TIFF resulted in the subrects being draw