bitmap save info

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)
<<<<
 
C

Cor Ligthert

Peter,

When you have the answer this is not a good post, this will be opened again
and again because somebody is thinking you have a question, therefore this
message.

When you do this the least you have to do is to tell in the subject that it
is not a question.

Cor

"Peter Proost"
 
P

Peter Proost

Thnx for pointing that out for me Cor, it won't happen again, my you can
help me with my next question, look at the post with bitmap resize as
subject
thnx Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top