difference between Image and Bitmap

G

Guest

Hello Experts,

I have 3 questions about Image and Bitmap, and hope you can help me.

1. Could any one tell me the difference between Image and Bitmap? I did take
a look of the 2 classes, but seems each one contains the other. Which one
should be used in what kind of situations, and why?

2. I have an image in a Form, when i create an Image and a Bitmap object as
follows, i found their PixelFormats are different:

private Image imageTmp;
public Bitmap bmpTmp;
imageTmp = pictureBox.Image; //imageTmp's PixelFormat is Format24bppRgb
bmpTmp = new Bitmap((Bitmap)imageTmp); //bmpTmp's PixelFormat is
Format32bppArgb

Why they are different? What are the default settings for Image and Bitmap?

3. Can i create a Bitmap object (mainly from the image in pictureBox.Image)
whose PixelFormat is directly to Format24bppRbg, instead of Format32bppArbg?
Or i can only convert the format from Format32bppArbg to Format24bppRbg? What
are the detail steps i need to take to implement this?

Please help me to answer these questions, and please recommend me some
papers which you think is useful on this topic.

Thanks so much for your help!

Victor
 

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