From: Charles S. <bas...@ch...> - 2012-06-18 17:37:33
|
On Jun 18, 2012, at 12:30 PM, Robert Munafo wrote: > On 6/18/12, Alexei Svitkine <ale...@gm...> wrote: >> We could always do our own decoding of PICT data and convert it to a >> different format that is suitable to put on the host clipboard (in which >> case, the host wouldn't even need to be a Mac!) >> >> For example, this open source library is able to parse PICTs: >> >> http://www.paintlib.de/paintlib/ > > That one appears to implement only bitmaps within PICT files, not the > full QuickDraw opcode set needed for B2 and SS. I quote from > http://paintlib.cvs.sourceforge.net/viewvc/paintlib/paintlib/common/plpictdec.cpp?view=markup > > "This class decodes macintosh PICT files with 1,2,4,8,16 and 32 bits > per pixel as well as PICT/JPEG. If an alpha channel is present in a > 32-bit-PICT, it is decoded as well. The PICT format is a general > picture file format and can contain a lot of other elements besides > bitmaps. These elements are ignored." But this is only for pasteboard support between the emulated and host systems, right? Do we really need 100% compatibility for that? As long as a PICT image on the emulated pasteboard gets translated to a TIFF or PNG or something on the host pasteboard and vice-versa 99% of the time, any rare corner cases should be only a minor inconvenience. Charles |