2008-02-01 08:43:30 +08:00
|
|
|
// Copyright 2006 Google Inc. All Rights Reserved.
|
|
|
|
// Author: <rays@google.com> (Ray Smith)
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OCR_TESSERACT_SVSHOWIM_H__
|
|
|
|
#define OCR_TESSERACT_SVSHOWIM_H__
|
|
|
|
|
|
|
|
#include "host.h"
|
|
|
|
#include "img.h"
|
|
|
|
|
|
|
|
class ScrollView;
|
|
|
|
|
|
|
|
// Override of a tesseract function to display an image in a window.
|
|
|
|
// This function redirects the display to ScrollView instead of the
|
|
|
|
// stubbed-out functions in tesseract.
|
|
|
|
void sv_show_sub_image(IMAGE* source, // Image to show.
|
2008-04-22 08:44:56 +08:00
|
|
|
inT32 xstart, // Bottom-left coords.
|
|
|
|
inT32 ystart,
|
|
|
|
inT32 xext, // Size of rectangle to show.
|
|
|
|
inT32 yext,
|
2008-02-01 08:43:30 +08:00
|
|
|
ScrollView* win, // Window to draw in.
|
2008-04-22 08:44:56 +08:00
|
|
|
inT32 xpos, // Place to show bottom-left.
|
|
|
|
inT32 ypos); // Y position.
|
2008-02-01 08:43:30 +08:00
|
|
|
|
|
|
|
#endif // OCR_TESSERACT_SVSHOWIM_H__
|