CBitmapHelper.h 366 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "../pch/pch.h"
  3. class CBitmapHelper
  4. {
  5. public:
  6. CBitmapHelper();
  7. ~CBitmapHelper();
  8. int SaveBitmapToFile(HBITMAP hBitmap, LPCWSTR lpFileName);
  9. HBITMAP Scale(HBITMAP srcBitmap, int MaxWidth, int MaxHeight);
  10. HBITMAP CopyScreenToBitmap(LPRECT lpRect);
  11. bool OcrRect(tesseract::TessBaseAPI& tess, LPRECT lpRect, std::string& result);
  12. };