public string CaptureFullScreen() { var scr = GetScreenResolution(); CoordRectangle rect2 = CoordRectangle.From(0, 0, scr.x, scr.y); var img02Path = string.Format("{0}\\{1}-{2:HHmmss}-full-screen.jpg", KK.FlashScreenDir(), KK.uuid(), DateTime.Now); CaptureImage(rect2, img02Path); return(img02Path); }
private void InitBizDir() { FileUtils.CreateDir(KK.CapturesDir()); FileUtils.CreateDir(KK.FlashScreenDir()); }
public string CaptureFlashScreen() { CoordRectangle rect2 = CoordRectangle.From(Datum, 900, 700); var img02Path = string.Format("{0}\\{1}-{2:HHmmss}-flash-screen.jpg", KK.FlashScreenDir(), KK.uuid(), DateTime.Now); CaptureImage(rect2, img02Path); return(img02Path); }