Multiple Image Resizer .NET v4.5.2
Help Documentation

Scripting Function - UnderlayImageByPosition

The function underlays a specified image beneath each image, the function performs a reverse of the OverlayImageByPosition function. The location of the overlay image is specified by position and x and y offsets.



UnderlayImageByPosition underlayimagefile As StringValueFileNameExisting, transparencymethod As OverlayTransparencyMethod, transparentcolor As ArgbColorValue, position As PositionValue, xoffset As IntegerValueGreaterEqualZero, yoffset As IntegerValueGreaterEqualZero, transparencyPercentage As IntegerValuePercentage



underlayimagefile - the full path of the image file that you would like to underlay beneath each image

transparencymethod - the overlay transparency method used during the overlay operation

transparentcolor - the color in the overlay image that will be made transparent during the overlay operation. Note if you have chosen to use ExistingImageTransparency for the transparencymethod parameter then this color parameter will not be used, but you specify it anyway!

position - the position of the image to to overlay

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

transparencyPercentage - Optional Parameter - Specifies the overall transparency (in percent) of the overlay image (defaults to 0 if not specified).



The following example overlays an image file onto each image. The overlay image file does not have any existing transparent layer but we want the color Argb(255,0,0,255) in the overlay image to be transparent, the overlay image is to appear at the bottom right and is not offset from the bottom right edges of the images:

UnderlayImageByPosition "c:\temp\image245.jpg", AreasMatchingColor, Argb(255, 0, 0, 255), BottomRight, 0, 0


Version Information

Supported in Multiple Image Resizer .NET v4.0.0.3


See Also