Project

ImagePlayground

Automate image processing, codes, metadata, charts, topology, and visual stories from PowerShell.

Stars 100
Forks 7
Total downloads 712,347
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-08-25

API Reference

Command

Add-ImageTextBox

Namespace ImagePlayground
Inputs
System.String

Adds wrapped text to an image within a box.

Remarks

Adds wrapped text to an image within a box.

Examples

Authored help example

Add text inside a box


Add-ImageTextBox -FilePath in.png -OutputPath out.png -Text "Sample text" -X 10 -Y 10 -Width 100
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Add-ImageTextBox [-Color <Color>] -FilePath <String> [-FontFamily <String>] [-FontSize <Single>] [-Height <Single>] [-HorizontalAlignment <Left|Right|Center>] [-OutlineColor <Color>] [-OutlineWidth <Single>] -OutputPath <String> [-ShadowColor <Color>] [-ShadowOffsetX <Single>] [-ShadowOffsetY <Single>] -Text <String> [-VerticalAlignment <Top|Center|Bottom>] -Width <Single> -X <Single> -Y <Single> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Color Color optionalposition: namedpipeline: False
Text color.
FilePath String requiredposition: 0pipeline: True (ByValue)
Source image path.
FontFamily String optionalposition: namedpipeline: False
Font family.
FontSize Single optionalposition: namedpipeline: False
Font size.
Height Single optionalposition: 6pipeline: False
Height of the text box.
HorizontalAlignment HorizontalAlignment optionalposition: namedpipeline: Falsevalues: 3
Horizontal alignment.
Possible values: Left, Right, Center
OutlineColor Color optionalposition: namedpipeline: False
Outline color.
OutlineWidth Single optionalposition: namedpipeline: False
Outline width.
OutputPath String requiredposition: 1pipeline: False
Destination image path.
ShadowColor Color optionalposition: namedpipeline: False
Color of shadow.
ShadowOffsetX Single optionalposition: namedpipeline: False
X offset for shadow.
ShadowOffsetY Single optionalposition: namedpipeline: False
Y offset for shadow.
Text String requiredposition: 2pipeline: False
Text to add.
VerticalAlignment VerticalAlignment optionalposition: namedpipeline: Falsevalues: 3
Vertical alignment.
Possible values: Top, Center, Bottom
Width Single requiredposition: 5pipeline: False
Width of the text box.
X Single requiredposition: 3pipeline: False
X coordinate.
Y Single requiredposition: 4pipeline: False
Y coordinate.