Anyone port IJG JPEG code to C#?

553 views Asked by At

Has anyone ported IJG JPEG code to C#? Are there any purely-managed JPEG libraries with source available? I don't much care about the license, as I just want to use it as a learning experience, not actually use it. Performance isn't a huge issue either.

I realize the BCL has ways of reading and writing JPEG files, this is mostly to satisfy my curiosity, and have a new toy to play with.

An implementation in F# would be interesting also.

2

There are 2 answers

1
allonym On BEST ANSWER

see LibJpeg.NET by Bit Miracle.

1
Yin Zhu On

How about use C++/CLI to wrapper a C++ library by using cli:pure compiling option. Should be straight forward.