> > 1: I don't understand the difference between r.PixelsHigh and r.Height (and > the width counterpart). Am I using the right one?
Width and Height of NSImageMBS is the desired output size. PixelsHigh and PixelsWidth is the real size in pixels. When you draw a NSImage, the best matching representation is searched and drawn with necessary scaling. > 2: the representations returned have non-unique values: I'm getting, for > instance, 32x32 several times, with no clear differences between them (the > other properties seem to be identical). Should I just ignore the ones that > are repeating to get all the possible icons? Icons can have both a 32 point @1 and a 16 point @2 as well as each a black & white copy. Or old icons used to have 32-bit and 8-bit image data. > 3: the representations show sizes up to 2048x2048 although, on the file I'm > trying (another Xojo app), I've only defined icons up to 128x128 (it's an old > one). Of course, when I view the image at that size, it's scaled way too > much, since it's not really a valid size. How can I know what sizes the icon > really has, to not save non-existent ones to my binary stream? Well, not sure how to detect scaled up ones. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ mbsplugins@monkeybreadsoftware.info mailing list %(list_address)s https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info