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

Re: anyone used libpng with c#? by Fabien

Fabien
Fri Dec 22 07:38:11 CST 2006

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 =E9crit :

> 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?
>=20
> Stuart


Re: anyone used libpng with c#? by eastlands

eastlands
Fri Dec 22 09:04:12 CST 2006

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

Fabien wrote:
> 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/