private void ApplyChanges() { LocalBuffer.SetParent(); ApplyClears(); LocalBuffer.Clear(); Dirty = false; ItemsChanged = true; RaisePropertyChanged(nameof(Items)); }
public string GetText(Image image) { var buffer = new LocalBuffer(); buffer.SaveImage(image); var extractedText = string.Empty; using (var pixImage = Pix.LoadFromFile(buffer.LastSavedFile)) { using (var page = _tesseractEngine.Process(pixImage)) { extractedText = page.GetText(); } } buffer.Clear(); return(extractedText); }
public void Clear(string key) { LocalBuffer.Clear(key); _clearedKeys.Add(key); Dirty = true; }