Multiple Image Resizer .NET v4.5.2
Help Documentation
Contents

Scripting Function - AddBorder

The function adds a border to each image. The colour and size of the border can be specified.

 

Syntax

AddBorder userfillname As StringValue, top As IntegerValueGreaterEqualZero, bottom As IntegerValueGreaterEqualZero, left As IntegerValueGreaterEqualZero, right As IntegerValueGreaterEqualZero

 

Parameters

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

top - the size in pixels for the border at the top of the image

bottom - the size in pixels for the border at the bottom of the image

left - the size in pixels for the border at the left of the image

right - the size in pixels for the border at the right of the image

 

Example

The following example creates a solid fill for the border, and adds a border of 10 pixels to the top and bottom and a 25 pixel border to the left and right of the image:

CreateFillSolid "myBorderFill", Argb(255, 0, 255, 255)
AddBorder "myBorderFill", 10, 10, 25, 25

 

Version Information

Supported in Multiple Image Resizer .NET v2.0.0.0

 

See Also