AddBorderedTextRegion

Metreos.Native.ImageBuilder.AddBorderedTextRegion

Summary

AddBorderedTextRegion adds a text string to the canvas which has a border and background fill color.

Usage

The AddBorderedTextRegion action lets a developer add an text string with a border and background fill color to an ImageBuilder type. As with all regions, this region will cover any previously added regions in the same area and can be covered by subsequent regions that occupy the same location as this region.

Remarks

None.

Action Parameters
Parameter Name.NET TypeDefaultDescription
Text *System.StringThe text to add to the image.
FontSystem.StringThe font of the text string.
FontSizeSystem.Int32The height of the font (in pixels).
Top *System.Int32The location of the top of the text region on the ImageBuilder canvas.
Left *System.Int32The location of the left of the text region on the ImageBuilder canvas.
RoundedCornersSystem.BooleantrueIndicates whether to round the corners of the border.
HorizontalPaddingSystem.Int323The amount of padding to place between the left and right edge of the text and the border (in pixels).
VerticalPaddingSystem.Int323The amount of padding to place between the top and bottom edge of the text and the border (in pixels)
TextColorSystem.Drawing.ColorSystem.Drawing.Color.BlackThe color of the text.
BorderColorSystem.Drawing.ColorSystem.Drawing.Color.BlackThe color of the border.
FillColorSystem.Drawing.ColorSystem.Drawing.Color.WhiteThe color of the background of the region.
BorderWidthSystem.Int321The width of the border (in pixels).
Result Data
Parameter Name.NET TypeDescription
ImageMetreos.Utilities.BorderedTextRegionA standard image region which the ImageBuilder type will append to itself using the specified text properties.

Branch Conditions 

Success

No description.

Failure

No description.