saving jpg files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi NG,
I found samples how to save images to bitmap files on th web.
In my app I need a way to load a jpg file - to edit this file and to save it
as a jpg file again.
Any idea?

Thanks for helping

Werner
 
Hi Werner,

The .NET Compact Framework version 2.0 will support the
System.Drawing.Image.Save method to save to a file or stream, making it
easier. Version 2 is available in the Microsoft Visual Studio 2005 beta.

Yes, you can manipulate images and save them. Here are the basic steps:

1. Compile your original bitmap as an Embedded Resource in your Visual
Studio project, or you can read a file in at run-time.

2. Create a System.Drawing.Graphics object from the bitmap.

3. Use the Image.Save method to save to a file.


The .NET Compact Framework version 2.0 documentation is available at:

http://msdn2.microsoft.com/en-us/library/f44bbwa1(en-US,VS.80).aspx


Hope this helps,
- Bruce Hamilton
..NET Compact Framework User Education
 
Hello Bruce,

Under .NETCF-1.0 you can save JPEG images using jpeg.dll, which resides
in \windows folder on PocketPC 2003 devices. I've written .NETCF
wrapper for it, see http://jpegator.com/ for more information.

Aleh
 
Back
Top