Image Viewer CP ActiveX Control

DrawText

 

Draw the overlay text on image. Make sure you set ShowText property = true.

Public Function DrawText( _
   ByVal iXPos As Integer, _
   ByVal iYPos As Integer, _
   ByVal strText As String, _
   ByVal bAntiAlias As Bool
) 

 

Parameter

iXPos
   Specifies the logical x-coordinate of the starting point of the text.

iYPos
   Specifies the logical y-coordinate of the starting point of the text.

strText
   the string of the text. Add Carriage returns and line feeds it will break the line.

bAntiAlias
   true - enable Anti-Aliasing algorithm, false - disable Anti-Aliasing algorithm.

Return Value

No return value.


Example

   

Visual Basic Syntax
ImageViewer1.DrawText 0,100 ,"Line 1" + chr(13)+chr(10) +"Line 2", True