Multiple Image Resizer .NET v4.5.2
Help Documentation
Contents

Scripting Function - AddText

The function adds text each image. The location of the text is specified by x and y coordinates.

 

Syntax

AddText text As StringValue, userfontname As StringValue, userfillname As StringValue, orientation As OrientationValue, x As IntegerValueGreaterEqualZero, y As IntegerValueGreaterEqualZero

 

Parameters

text - the text the add each processed image. Note you may also use Special Text Tags within your text.

userfontname - the name of the font that you would like to apply to the text. Note that you must create the font specified in this parameter using the CreateFont function before you use this function.

userfillname - the name of the font fill color/pattern that you would like to apply to the text. Note that you must create the fill specified in this parameter using either the CreateFillSolid or CreateFillLinearGradient function before you use this function.

orientation - the orientation of the text

x - the x coordinate where the top left corner of the text should be positioned

y - the y coordinate where the top left corner of the text should be positioned

 

Example

The following example creates a new font, creates a solid fill for the font and then adds a horizontal text message at 100 pixels from the top of the image and 200 pixels in from the left edge of the image:

CreateFont "myFont", "Arial", Regular, True, False, 25
CreateFillSolid "myFill", Argb(255, 0, 255, 0)
AddText "This is some text", "myFont", "myFill" , Horizontal, 100, 200

 

Version Information

Supported in Multiple Image Resizer .NET v2.0.0.0

 

See Also