From: Robert M. <mr...@gm...> - 2012-06-18 17:30:33
|
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." I once found a project trying to implement QuickDraw emulation for a similar purpose, I don't remember how complete it was. It's important that it be as small as possible (no external libraries except what we can count on from Apple, no code for other formats like GIF, BMP, DICOM, etc.) and of course all open source. I do agree with the general idea, that adding QuickDraw emulation in the host side would be a good idea to investigate. -- Robert Munafo -- mrob.com Follow me at: gplus.to/mrob - fb.com/mrob27 - twitter.com/mrob_27 - mrob27.wordpress.com - youtube.com/user/mrob143 - rilybot.blogspot.com |