Re: Strange issue with PNG files
Markus Hitter <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
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/