Beispiel #1
0
        public void SaveScreenShot(string fileName)
        {
            Logger.Info($"Saving to bmp file: {fileName}");
            var rawBitMap = new RawBitmap(_pixels);

            rawBitMap.SaveToBmpFile(fileName);
        }
Beispiel #2
0
        public void LoadScreenShot(string fileName, string name)
        {
            _name = name;
            var image     = Image.FromFile(fileName);
            var rawBitMap = new RawBitmap(image);

            _pixels = rawBitMap.ConvertDatas();
        }