TerPageBitmap
Retrieve the image of a page of text.
Bitmap TerPageBitmap(PageNo)
int PageNo; | Page number number (0 to TotalPages - 1) |
Return Value: This function returns the Bitmap object containing the text for the page. A null values indicates an error condition.
When creating bitmaps for multiple pages, it is efficient to sandwich multiple calls to the TerPageBitmap function between the calls to the TerSetPrintPreview function:
int TotalPages=tej.TerGetParam(tej.TP_TOTAL_PAGES);
tej.TerSetPrintPreview(true); // start the document bitmap
output
for (int page=0;page<TotalPages;page++) {
tej.TerPageBitmap(page);
TotalPages=tej.TerGetParam(tej.TP_TOTAL_PAGES);
// this line is needed only if the Tej control is NOT
set to use page-mode
}
tej.TerSetPrintPreview(false);
// end the document bitmap output