WriteText(String,Int32,Int32) Method

Kaliko Image Library

Kaliko.ImageLibrary
WriteText(String,Int32,Int32) Method
Example 





Text that will be written on image
Left-most position of the text
Top-most position of the text
Write text to image using the font assigned using SetFont Method.
Syntax
'Declaration
 
Public Overloads Sub WriteText( _
   ByVal text As System.String, _
   ByVal x As System.Integer, _
   ByVal y As System.Integer _
) 
'Usage
 
Dim instance As KalikoImage
Dim text As System.String
Dim x As System.Integer
Dim y As System.Integer
 
instance.WriteText(text, x, y)
public void WriteText( 
   System.string text,
   System.int x,
   System.int y
)
public procedure WriteText( 
    text: System.String;
    x: System.Integer;
    y: System.Integer
); 
public function WriteText( 
   text : System.String,
   x : System.int,
   y : System.int
);
public: void WriteText( 
   System.string* text,
   System.int x,
   System.int y
) 
public:
void WriteText( 
   System.String^ text,
   System.int x,
   System.int y
) 

Parameters

text
Text that will be written on image
x
Left-most position of the text
y
Top-most position of the text
Example
// Write Hello World on image with semi transparent white
var image = new KalikoImage(@"C:\Img\MyImage.jpg");
 
// Load the font, relative path from the application path
image.SetFont("84_rock.ttf", 120, FontStyle.Regular);
image.Color = Color.FromArgb(64, Color.White);
image.WriteText("Hello World!", 0, 0);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys