Imaging API: Load, Resize and Save a JPEG
- From: lukekb@xxxxxxxxx
- Date: 28 May 2006 09:46:35 -0700
Hi! Please bear with me, I am coming from Linux and C, and just
gettting started with NET CF and C#. I am working on an App for the
Treo 700w that would take photos, and then be able to resize them and
ftp them. Right now I have this all working using the .NET CF.
The problem I have is that default interpolation in .net is Nearest
Neighbor and this gives really bad results. It is possible to do
Bicubic Interpolation using the Imaging API in Windows CE 5.0... but I
am bot quite smart enough to figure out how to do all the wrapping. I
know this will be possible with the OpenNETCF 2.0 SDF but I would only
be using such a small part of it that I would like to go with something
a little more lightweight, like wrapping the API in managed code.
Right now I am able to load the Jpeg file and resize it as a bitmap
using IImageFactory, and CreateBitmapFromFile, which looks like it does
the resizing right there.
I think all I need to do is save it to a jpeg now. Is this sounding
right? Does anyone have pointers on this? Any source code would be
REALLY REALLY helpful. Actaully any source code for any part of this
process would be great!
So far this has been a great starting point:
http://blogs.msdn.com/chrislorton/archive/2006/04/07/570649.aspx
Thanks in advance,
Luke
.
- Prev by Date: Re: CF 2.0 XPATH problem
- Next by Date: Re: Bluetooth SPP
- Previous by thread: Bluetooth SPP
- Next by thread: Render type webbrowser component
- Index(es):
Relevant Pages
|
Loading