Hi Flix,
I found this:
private void button3_Click(object sender, System.EventArgs e)
{
Bitmap b1=new Bitmap("augustinus_16ColorBitmap.bmp");
Bitmap b2=new
Bitmap(b1.Size.Width,b1.Size.Height,System.Drawing .Imaging.PixelFormat.Forma
t24bppRgb);
Graphics g = Graphics.FromImage(b2);
g.DrawImage(b1,new Point(0,0));
g.Dispose();
System.Console.WriteLine("b1.PixelFormat="+ b1.PixelFormat.ToString());
System.Console.WriteLine("b2.PixelFormat="+ b2.PixelFormat.ToString());
this.BackgroundImage=b2;
}
Christiaan.
"Flix" <wr***@newsgroup.com> wrote in message
news:43*********************@news.tiscali.it...
Is there some way to convert a Bitmap from one PixelFormat (16bit or with
indexed colors) to another(24bit), without doing per pixel operations?