Re: Strange issue with PNG files

Michael B Johnson <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Yea, because many of the images that flow through are pipeline are  
much higher DPI (storyboards tend to be 200DPI, for example), we have  
always had to deal with this. comparing size and pixels is a good  
thing to do...


On Mar 5, 2010, at 12:53 PM, Markus Hitter wrote:

>
> Am 04.03.2010 um 20:23 schrieb Eric Gorr:
>
>>> If you want to draw it pixel for pixel despite the high ppi, use - 
>>> pixelsHigh/-pixelsWide, create an NSSize of that size, and draw it  
>>> "scaled".
>>
>> So, the only/recommended way to determine when an image is in this  
>> state is to compare what [image size] returns vs. pixelsHeight &  
>> pixelsWide?
>
> IIRC, the recommended way is to not care about the number of pixels  
> of an image, but to draw it by size. Resolution independent display  
> technologies aren't that far away. With these, image pixels won't  
> match display pixels even when drawn at 72 dpi (1 pixel = 1 image  
> size unit).
>
>
> Markus
>
> - - - - - - - - - - - - - - - - - - -
> Dipl. Ing. Markus Hitter
> http://www.jump-ing.de/
>
>
>
>
> _______________________________________________
> MacOSX-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.