anyone used libpng with c#?

  • Thread starter Thread starter eastlands
  • Start date Start date
E

eastlands

I am desperately trying to save PNG image files from my C# CF
application.
I have found libpng for CE (lpngce at
http://www.tenik.co.jp/~adachi/wince/lpngce/index.html) but not having
a C++ backgroung I'm having some difficulty - at the moment I cannot
even get it to compile.

Has anyone else tried this or have any other way of saving PNG images?

Stuart
 
Hi,

You should use C# directly to save your image :
myBmp.Save( @"path\image.png", System.Drawing.Imaging.ImageFormat.Png
);

BR


Fabien Decret
Windows Embedded Consultant


ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/




eastlands a écrit :
 
Unfortunately, although this code would compile, it throws a
NotSupportedException on the compact framework. Only saving with
ImageFormat.Bmp is supported.

I've seen lots of posts looking for this feature (saving to Png, Jpg or
Gif) but have not yet found a working solution.

Stuart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top