public override BitmapCi BitmapCreate(int width, int height) { BitmapCiCs bmp = new BitmapCiCs(); bmp.bmp = new Bitmap(width, height); return bmp; }
public override BitmapCi BitmapCreateFromPng(byte[] data, int dataLength) { BitmapCiCs bmp = new BitmapCiCs(); try { bmp.bmp = new Bitmap(new MemoryStream(data, 0, dataLength)); } catch { bmp.bmp = new Bitmap(1, 1); bmp.bmp.SetPixel(0, 0, Color.Orange); } return bmp; }
public override BitmapCi GrabScreenshot() { screenshot.d_GameWindow = window; Bitmap bmp = screenshot.GrabScreenshot(); BitmapCiCs bmp_ = new BitmapCiCs(); bmp_.bmp = bmp; return bmp_; }