Tesseract
3.02
|
Go to the source code of this file.
Functions | |
void | sv_show_sub_image (IMAGE *source, inT32 xstart, inT32 ystart, inT32 xext, inT32 yext, ScrollView *window, inT32 xpos, inT32 ypos) |
void sv_show_sub_image | ( | IMAGE * | source, |
inT32 | xstart, | ||
inT32 | ystart, | ||
inT32 | xext, | ||
inT32 | yext, | ||
ScrollView * | window, | ||
inT32 | xpos, | ||
inT32 | ypos | ||
) |
Definition at line 19 of file svshowim.cpp.
{ // Y position. Pix* pix; if (xstart != 0 || ystart != 0 || xext != source->get_xsize() || yext != source->get_ysize()) { IMAGE sub_im; sub_im.create(xext, yext, source->get_bpp()); copy_sub_image(source, xstart, ystart, xext, yext, &sub_im, 0, 0, false); pix = sub_im.ToPix(); } else { pix = source->ToPix(); } window->Image(pix, xpos, window->TranslateYCoordinate(yext) + ypos); pixDestroy(&pix); }