public Form1() { InitializeComponent(); textureIndex = 0; gfx = new GFXLib(); lut = new LUTLib(); }
void ConvertBPPImage(Bitmap bmpOriginal, ref Bitmap bmpOutput, GFXLib gfx) { PixelFormat format = gfx.PixelMode; Rectangle lockRect = new Rectangle(0, 0, bmp.Width, bmp.Height); bmpOutput = bmpOriginal.Clone(lockRect, format); }