+2005-09-25 Jackson Harper <jackson@ximian.com>
+
+ * ImageList.cs: Don't set the format when changing the image.
+
2005-09-25 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We can't just assume the node has a font. Use the
width=owner.ImageSize.Width;
height=owner.ImageSize.Height;
+
switch(owner.color_depth) {
case ColorDepth.Depth4Bit: format=PixelFormat.Format4bppIndexed; break;
case ColorDepth.Depth8Bit: format=PixelFormat.Format8bppIndexed; break;
Graphics g;
Bitmap reformatted_image;
- reformatted_image = new Bitmap(width, height, format);
+ reformatted_image = new Bitmap(width, height);
g=Graphics.FromImage(reformatted_image);
g.DrawImage(image, new Rectangle(0, 0, width, height), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel);