R
raar
Hello,
I am using .net cf version 2.0 and i have a strange problem with
converting bitmaps.
Loading of bitmaps in various formats (bmp, jpg, png) works perfectly
but when i try to save them in any format other than .Bmp (like jpg or
png), the program compiles but when i execute it i get an error: "Not
supported". Because i am uploading a bitmap to a server, i would like
to use the png format since bitmaps in png are smaller in size and
thus upload faster. Even jpg would do.
My code is simpel:
bitmap = new Bitmap(dlg.FileName);
MemoryStream bitmapStream = new System.IO.MemoryStream();
bitmap.Save(bitmapStream, System.Drawing.Imaging.ImageFormat.Png);
It works when i make a desktop program but not when i make it for
pocketpc.
Help or hints much appreciated
I am using .net cf version 2.0 and i have a strange problem with
converting bitmaps.
Loading of bitmaps in various formats (bmp, jpg, png) works perfectly
but when i try to save them in any format other than .Bmp (like jpg or
png), the program compiles but when i execute it i get an error: "Not
supported". Because i am uploading a bitmap to a server, i would like
to use the png format since bitmaps in png are smaller in size and
thus upload faster. Even jpg would do.
My code is simpel:
bitmap = new Bitmap(dlg.FileName);
MemoryStream bitmapStream = new System.IO.MemoryStream();
bitmap.Save(bitmapStream, System.Drawing.Imaging.ImageFormat.Png);
It works when i make a desktop program but not when i make it for
pocketpc.
Help or hints much appreciated