Re: [MBS] Images representations of icon files

2019-08-21 Thread Christian Schmitz
> > 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 repr

Re: [MBS] Images representations of icon files

2019-08-21 Thread Marnaud
Sorry, a third question comes to mind: 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

[MBS] Images representations of icon files

2019-08-21 Thread Marnaud
Hello, I'm replacing the IconFamilyMBS class with the new NSWorkspace.IconForFile function. In the old way, I used the IconFamilyMBS.data to write all icons of a given item to a binary stream; when reading the file, I'd set the read data back to an IconFamilyMBS.data property, so all the icon s