MCPcopy Create free account
hub / github.com/creatale/node-dv / ZoomToRectangle

Method ZoomToRectangle

deps/tesseract/viewer/scrollview.cpp:765–770  ·  view source on GitHub ↗

Zoom the window to the rectangle given upper left corner and lower right corner.

Source from the content-addressed store, hash-verified

763// Zoom the window to the rectangle given upper left corner and
764// lower right corner.
765void ScrollView::ZoomToRectangle(int x1, int y1, int x2, int y2) {
766 y1 = TranslateYCoordinate(y1);
767 y2 = TranslateYCoordinate(y2);
768 SendMsg("zoomRectangle(%d,%d,%d,%d)",
769 MIN(x1, x2), MIN(y1, y2), MAX(x1, x2), MAX(y1, y2));
770}
771
772// Send an image of type Pix.
773void ScrollView::Image(struct Pix* image, int x_pos, int y_pos) {

Callers 4

RefreshDebugWindowMethod · 0.80
ShowMatchDisplayMethod · 0.80
classify_word_pass2Method · 0.80
DisplaySegmentationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected