page_rect
page_rect function
Optical character recognition image in the defined rectangle. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. Skew alignment does not occur. If the buffer is null, the function returns the required buffer size.
size_t page_rect(const char *image_path, wchar_t *buffer, size_t buffer_size, int x, int y, int w, int h)
Returns: size_t