Skip to content

Add ImageAnnotation

apobekiaris edited this page Sep 4, 2020 · 2 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Add-ImageAnnotation

SYNOPSIS

Annotate an image.

SYNTAX

text

Add-ImageAnnotation -Image <FileInfo> -Text <String> [-Color <Object>] [-Gravity <Object>] [-PointSize <Int32>]
 [<CommonParameters>]

overlay

Add-ImageAnnotation -Image <FileInfo> -ImageOverlay <String> [-Color <Object>] [-Gravity <Object>]
 [-PointSize <Int32>] [<CommonParameters>]

DESCRIPTION

Annotate an image.

EXAMPLES

Example 1

PS C:\> $c=[System.Net.WebClient]::new()
    $c.DownloadFile("https://user-images.githubusercontent.com/159464/89112500-317c2f00-d46c-11ea-824c-172cb95ee6df.png","$env:TEMP\hideme.png")
    Add-ImageAnnotation -Image $image -ImageOverlay "$env:TEMP\hideme.png"

Overlays the hireme message to this image.

PARAMETERS

-Color

{{ Fill Color Description }}

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Gravity

{{ Fill Gravity Description }}

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Image

{{ Fill Image Description }}

Type: FileInfo
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ImageOverlay

{{ Fill ImageOverlay Description }}

Type: String
Parameter Sets: overlay
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PointSize

{{ Fill PointSize Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Text

{{ Fill Text Description }}

Type: String
Parameter Sets: text
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.IO.FileInfo

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally