Set the DesignedTextEnabled property to True and configure the associated property values to draw decorated text.

Additionally, these settings can be changed even after drawing.

Example of drawing:

Code Example

Draws text with borders, shadows, and gradient.

[Visual Basic.NET]

'When using the annotation feature, the following properties need to be set to True.
ImageKit1.Edit.EditEnabled = True

'Set the drawing object to text
ImageKit1.Edit.EditKind = Newtone.ImageKit.Win.KindOfEdit.Text
ImageKit1.Edit.Fill = False

'Enable decorated text
ImageKit1.Edit.DesignedTextEnabled = True

'Settings for text border
ImageKit1.Edit.TextBorderWidth = 10
ImageKit1.Edit.TextBorderColor = Color.Yellow

'Text color and gradient
ImageKit1.Edit.ForeColor = Color.Red
ImageKit1.Edit.ForeColor2 = Color.Blue
ImageKit1.Edit.TextLinearGradientMode = LinearGradientMode.Horizontal

'Settings for text shadow
ImageKit1.Edit.TextShadowColor = Color.Gray
ImageKit1.Edit.TextShadowBlur = 5
ImageKit1.Edit.TextShadowColorOpacity = 50
ImageKit1.Edit.TextShadowOffsetX = 10
ImageKit1.Edit.TextShadowOffsetY = 10


'After this, draw the text using mouse, keyboard operations, or methods

[Visual C#.NET]
//※When using the annotation function, you need to set the following properties to True
ImageKit1.Edit.EditEnabled = true;

ImageKit1.Edit.Fill = false;
//Set the drawing object to text
ImageKit1.Edit.EditKind = Newtone.ImageKit.Win.KindOfEdit.Text;

//Enable decorated text
ImageKit1.Edit.DesignedTextEnabled = true;

//Settings for text border
ImageKit1.Edit.TextBorderWidth = 10;
ImageKit1.Edit.TextBorderColor = Color.Yellow;

//Text color and gradient
ImageKit1.Edit.ForeColor = Color.Red;
ImageKit1.Edit.ForeColor2 = Color.Blue;
ImageKit1.Edit.TextLinearGradientMode = LinearGradientMode.Horizontal;

//Settings for text shadow
ImageKit1.Edit.TextShadowColor = Color.Gray;
ImageKit1.Edit.TextShadowBlur = 5;
ImageKit1.Edit.TextShadowColorOpacity = 50;
ImageKit1.Edit.TextShadowOffsetX = 10;
ImageKit1.Edit.TextShadowOffsetY = 10;

//After this, draw the text using mouse, keyboard operations, or methods

◆ Reference Properties

ImageKit.Edit.DesignedTextEnabled
ImageKit.Edit.TextBorderColor
ImageKit.Edit.TextBorderColorOpacity
ImageKit.Edit.TextBorderWidth
ImageKit.Edit.ForeColor2
ImageKit.Edit.TextLinearGradientMode
ImageKit.Edit.TextShadowBlur
ImageKit.Edit.TextShadowColor
ImageKit.Edit.TextShadowColorOpacity
ImageKit.Edit.TextShadowOffsetX
ImageKit.Edit.TextShadowOffsetY
ImageKit.Edit.SelectedObjectTextBorderColor
ImageKit.Edit.SelectedObjectTextBorderColorOpacity
ImageKit.Edit.SelectedObjectTextBorderWidth
ImageKit.Edit.SelectedObjectForeColor2
ImageKit.Edit.SelectedObjectTextLinearGradientMode
ImageKit.Edit.SelectedObjectTextShadowBlur
ImageKit.Edit.SelectedObjectTextShadowColor
ImageKit.Edit.SelectedObjectTextShadowColorOpacity
ImageKit.Edit.SelectedObjectTextShadowOffsetX
ImageKit.Edit.SelectedObjectTextShadowOffsetY




The ImageKit.NET3 is created by Newtone Corporation