Multiple Image Resizer .NET v4.5.2
Help Documentation
Contents

Scripting Function - AddTextWithRotation

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

 

Syntax

AddTextWithRotation text As StringValue, userfontname As StringValue, userfillname As StringValue, angle As IntegerValueAny, x As IntegerValueGreaterEqualZero, y As IntegerValueGreaterEqualZero, alignment As AlignmentValue, transparencyPercentage As IntegerValuePercentage

 

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.

angle - the angle of the text in degrees (note the angle can be specified as a positive or negative number)

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

alignment - the alignment of the text (note only works for multi-line text)

transparencyPercentage - the transparency of the text in percent (0 = solid non transparent text, 100 = fully transparent text)

 

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 at an angle of 45 degrees, with the text left aligned and 25% transparent:

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

 

Version Information

Supported in Multiple Image Resizer .NET v2.3.0.0

 

See Also