Image Viewer CP ActiveX Control

PDFSetTextColor

 

Set the text color, it will affect PDFDrawText method.
 

Public Function PDFSetTextColor( _
   ByVal iRed As Integer, _
   ByVal iGreen As Integer, _
   ByVal iBlue As Integer
 ) As bool

 

Parameter

iRed
 The color value with red component of text color.

iGreen
 The color value with green component of text color.

iBlue
 The color value with blue component of text color.

Return Value

Return true if successful.
Return false if failed.


Example

   

Visual Basic Syntax
ImageViewer1.PDFInitAnnotation
FontID = ImageViewer1.PDFAddFont("Arial", True, True)
ImageViewer1.PDFSetTextColor 255, 0, 255
ImageViewer1.PDFDrawText 0, 0, 100, "This is sample text 1 ", FontID, 40, 0