#if !NET472 using System.Runtime.Versioning; #endif namespace RhSolutions.Tools; internal class OcrTool : Tool { public OcrTool(ReaderFactory readerFactory, WriterFactory writerFactory) : base(readerFactory, writerFactory) { } public override void Execute() { var bmp = SnippingTool.SnippingTool.Snip(); if (bmp != null) { // Do something with the bitmap //... } } }