68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
C# Library for writing PICT Images
Posted by: superpete on 2017-07-22 21:34:18
Not sure if there's any .NET devs here, but I've ported the TwelveMonkeys PICT encoder to C# and added support for 8-bit images. 

It's available from Github at https://github.com/pgodwin/PictSharp

This has mostly been written for my GopherProxy project to have the option of PICT images alongside GIF. It may also be useful for other projects that wish to add PICT as an output format.

Posted by: jamie marchant on 2017-07-26 08:48:30
I don't need that at the moment but I'll keep that in mind if I do in the future. 

Posted by: superpete on 2022-01-05 03:35:42
Hoping I'm not breaking the rules by necroposting, but just letting everyone know that this has been updated.

New features:
  • Supports .NET Core for cross-platform usage (via .NET Standard 2.0) and is available as a nuget package
  • Now supports 1bpp, 2bpp, 4bpp as well as 8bpp and 32bpp from before
  • Should now work with images with arbitary widths (ie no longer has to be a power of 2)
  • Fix some strange encoding issues with the bitstream which prevented Quicktime on Windows from opening some images.
Posted by: cheesestraws on 2022-01-05 04:04:33
Oooh, this is potentially handy. Thanks for the necro, I didn't know this existed.
Posted by: superpete on 2022-01-05 04:08:04
No worries. Love to hear if you do anything with it (or if you find some bugs!).
Posted by: kitsunesoba on 2022-01-06 13:41:58
Another thanks for the necro! I don't write much C#, but I wasn't aware of any open source third party PICT encoders/decoders prior to seeing this thread, so having two for reference is great! If I get some extra time I'd like to try my hand to porting it to Objective-C or Swift.
1