RhSolutions-AddIn/RhSolutions.AddIn/Tools/OcrTool.cs

22 lines
404 B
C#
Raw Normal View History

2024-11-06 23:43:00 +03:00
#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
//...
}
}
}