public System.Drawing.Bitmap GetAsBitmap() { GR.Image.FastImage fastImage = new FastImage(Width, Height, PixelFormat); for (int i = 0; i < PaletteEntryCount; ++i) { fastImage.SetPaletteColor(i, PaletteRed(i), PaletteGreen(i), PaletteBlue(i)); } for (int x = 0; x < Width; ++x) { for (int y = 0; y < Height; ++y) { fastImage.SetPixel(x, y, GetPixel(x, y)); } } System.Drawing.Bitmap bitmap = fastImage.GetAsBitmap(); fastImage.Dispose(); return(bitmap); }