P
Peter Proost
Hi group when save a bitmap called saveBmp like this:
<<<<
saveBmp.Save(filename, ImageFormat.Jpeg)
<<<<
the bitmap gets saved with it's size propertys, so if I right click the file
and select propertys I can see the width and the height of the image. But if
I save the bitmap as a bitmap:
<<<<
saveBmp.Save(filename, ImageFormat.Bmp)
<<<<
this information doesn't get saved, is there something I can do about this,
should I declare the bitmap in a specified format?
I already found the answer while typing this post but I'm still going to
post it because maybe it's useful for someone else. The solution is to
create the bitmap as follows:
<<<<
saveBmp = new bitmap (width,height, PixelFormat.Format24bppRgb)
<<<<
<<<<
saveBmp.Save(filename, ImageFormat.Jpeg)
<<<<
the bitmap gets saved with it's size propertys, so if I right click the file
and select propertys I can see the width and the height of the image. But if
I save the bitmap as a bitmap:
<<<<
saveBmp.Save(filename, ImageFormat.Bmp)
<<<<
this information doesn't get saved, is there something I can do about this,
should I declare the bitmap in a specified format?
I already found the answer while typing this post but I'm still going to
post it because maybe it's useful for someone else. The solution is to
create the bitmap as follows:
<<<<
saveBmp = new bitmap (width,height, PixelFormat.Format24bppRgb)
<<<<