| external help file | ImagePlayground-help.xml |
|---|---|
| Module Name | ImagePlayground |
| online version | https://github.com/EvotecIT/ImagePlayground |
| schema | 2.0.0 |
Adds text to an image at the provided coordinates and writes the updated image to disk.
Add-ImageText [-FilePath] <string> [-OutputPath] <string> [-Text] <string> [-X] <float> [-Y] <float> [-Color <OfficeColor>] [-FontSize <float>] [-FontFamily <string>] [-ShadowColor <OfficeColor>] [-ShadowOffsetX <float>] [-ShadowOffsetY <float>] [-OutlineColor <OfficeColor>] [-OutlineWidth <float>] [<CommonParameters>]Adds text to an image at the provided coordinates and writes the updated image to disk.
Add-ImageText -FilePath in.png -OutputPath out.png -Text "Sample" -X 10 -Y 10$img = Get-Image -FilePath in.png
try {
$img.AddText(10, 10, 'Sample', [OfficeIMO.Drawing.OfficeColor]::Black, 24)
Save-Image -Image $img -FilePath out.png
} finally {
$img.Dispose()
}Text color.
Type: OfficeColor
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSource image path.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseFont family.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseFont size.
Type: Single
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOutline color.
Type: OfficeColor
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOutline width.
Type: Single
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseDestination image path.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseColor of shadow.
Type: OfficeColor
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseX offset for shadow.
Type: Single
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseY offset for shadow.
Type: Single
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseText to add.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseX coordinate.
Type: Single
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseY coordinate.
Type: Single
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
System.String
None
- None