This is a discussion on How to convert 8-bit bitmap to 24-bit bitmap? within the Mobile Software Development forums, part of the Software Development category; How to convert 8-bit bitmap to 24-bit bitmap?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi one To convert 8-bit to 24-bit image, one way is to draw another bitmap based on original bitmap's pixel color: Bitmap image = new Bitmap(@"C:\bit8.bmp"); Bitmap bitmap = new Bitmap(image.Width, image.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb) ; for (int i = 0; i < image.Width; i++) { for (int j = 0; j < image.Height; j++) { Color temp = image.GetPixel(i, j); bitmap.SetPixel(i, j, temp); } } bitmap.Save(@"C:\bit24.bmp", System.Drawing.Imaging.ImageFormat.Bmp); Hope Informative, |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert YUV to RGB | kingmaker | C# Programming | 2 | 02-17-2008 12:07 AM |
| Bitmap checkpoint saved | itbarota | Testing Tools | 1 | 08-17-2007 03:50 AM |
| Bitmap checkpoints | Shanthi | Testing Tools | 1 | 08-10-2007 06:08 AM |
| Can anyone know a Simple method to convert a bitmap to icon using c# dot net? | Archer | C# Programming | 1 | 07-22-2007 11:31 PM |
| How to convert 8-bit bitmap to 24-bit bitmap? | theone | C# Programming | 1 | 07-19-2007 12:58 AM |