API Reference
Command
Add-ImageTextBox
Adds wrapped text to an image within a box.
Remarks
Adds wrapped text to an image within a box.
Examples
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 SetsParameters
- Color Color
- Text color.
- FilePath String
- Source image path.
- FontFamily String
- Font family.
- FontSize Single
- Font size.
- Height Single
- Height of the text box.
- HorizontalAlignment HorizontalAlignment
- Horizontal alignment.
- Possible values:
Left,Right,Center - OutlineColor Color
- Outline color.
- OutlineWidth Single
- Outline width.
- OutputPath String
- Destination image path.
- ShadowColor Color
- Color of shadow.
- ShadowOffsetX Single
- X offset for shadow.
- ShadowOffsetY Single
- Y offset for shadow.
- Text String
- Text to add.
- VerticalAlignment VerticalAlignment
- Vertical alignment.
- Possible values:
Top,Center,Bottom - Width Single
- Width of the text box.
- X Single
- X coordinate.
- Y Single
- Y coordinate.