Esempio n. 1
0
 public override BitmapCi BitmapCreate(int width, int height)
 {
     BitmapCiCs bmp = new BitmapCiCs();
     bmp.bmp = new Bitmap(width, height);
     return bmp;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public override BitmapCi GrabScreenshot()
 {
     screenshot.d_GameWindow = window;
     Bitmap bmp = screenshot.GrabScreenshot();
     BitmapCiCs bmp_ = new BitmapCiCs();
     bmp_.bmp = bmp;
     return bmp_;
 }