Image Viewer CP ActiveX Control

DrawPageOnly

 

If you loaded multipage TIFF or PDF file, when you call DrawText or DrawImage method, it will draw the overlay text/image on each pages.
You may use DrawPageOnly method to control which page you want to draw.

Public Function DrawPageOnly( _
   ByVal iPage As Integer
) 

 

Parameter

iPage
   Draw the overlay text or image on specific page only.


Return Value

No return value.


Example

   

Visual Basic Syntax ' this sample will draw the overlay image on page2 and page3 only
ImageViewer1.FileName="c:\test1.tif"
ImageViewer1.ShowImage=True
ImageViewer1.DrawImage 0, 0, c:\image.jpg, RGB(0,0,0), 255
ImageViewer1.DrawPageOnly 2
ImageViewer1.DrawPageOnly 3