Multiple Image Resizer .NET v4.5.2
Help Documentation
Contents

Scripting Function - AddTextByPosition

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

 

Syntax

AddTextByPosition text As StringValue, userfontname As StringValue, userfillname As StringValue, orientation As OrientationValue, position As PositionValue, xoffset As IntegerValueGreaterEqualZero, yoffset 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

position - the position of the text

xoffset - the x offset from the edge of the image relative the position

yoffset - the y offset from the edge of the image relative the position

 

Example

The following example creates a new font, creates a linear gradient fill for the font and then adds a vertical text message to the top right of the image that is offset 25 pixels from the top right edges of the image:

CreateFont "myFont2", "Arial", Bold, False, False, 40
CreateFillLinearGradient "myGradientFill", Argb(255, 128, 128, 40), Argb(255, 255, 38, 68), 45
AddTextByPosition "This is some text", "myFont2", "myGradientFill", Vertical, TopRight, 25, 25

 

Version Information

Supported in Multiple Image Resizer .NET v2.0.0.0

 

See Also