WriteText(String,Int32,Int32,Single) Method
Kaliko.ImageLibrary Namespace > KalikoImage Class > WriteText Method : WriteText(String,Int32,Int32,Single) Method |
Text that will be written on image
Left-most position of the text
Top-most position of the text
Angle to rotate the text to
Write text to image using the font assigned using SetFont Method rotated in the defined angle.
Syntax
Parameters
- text
- Text that will be written on image
- x
- Left-most position of the text
- y
- Top-most position of the text
- angle
- Angle to rotate the text to
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!", 100, 100, 45);
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