Tesseract  3.02
tesseract-ocr/image/svshowim.h
Go to the documentation of this file.
00001 // Copyright 2006 Google Inc. All Rights Reserved.
00002 // Author: <rays@google.com> (Ray Smith)
00003 //
00004 
00005 #ifndef OCR_TESSERACT_SVSHOWIM_H__
00006 #define OCR_TESSERACT_SVSHOWIM_H__
00007 
00008 #include "host.h"
00009 #include "img.h"
00010 
00011 class ScrollView;
00012 
00013 // Override of a tesseract function to display an image in a window.
00014 // This function redirects the display to ScrollView instead of the
00015 // stubbed-out functions in tesseract.
00016 void sv_show_sub_image(IMAGE*    source,         // Image to show.
00017                        inT32     xstart,         // Bottom-left coords.
00018                        inT32     ystart,
00019                        inT32     xext,           // Size of rectangle to show.
00020                        inT32     yext,
00021                        ScrollView*    win,            // Window to draw in.
00022                        inT32     xpos,           // Place to show bottom-left.
00023                        inT32     ypos);          // Y position.
00024 
00025 #endif  // OCR_TESSERACT_SVSHOWIM_H__