< Back

Add-PIPWatermark

Sat Jan 18, 2020 6:50 pm

NAME Add-PIPWatermark



SYNOPSIS

Change the size of the image.





SYNTAX

Add-PIPWatermark [-InputObject] <ImageFactory> [-Text] <String> [[-Color] <Color>] [[-Font] <String>] [[-FontSize]

<Int32>] [[-Style] {Regular | Bold | Italic | Underline | Strikeout}] [[-Opacity] <Int32>] [[-X] <Int32>] [[-Y]

<Int32>] [-DropShadow] [<CommonParameters>]





DESCRIPTION

Change the size of the image to the either the absolute height and width

or constrained to the height and width but maintaining aspect ratio.





PARAMETERS

-InputObject <ImageFactory>

Specifies the objects to send down the pipeline. Enter a variable that contains the objects, or type a command

or

expression that gets the objects.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Text <String>

The text to write to the image.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Color <Color>

The System.Drawing.Color to render the text.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Font <String>

The name of the font to apply to the text.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FontSize <Int32>

The size of the text in pixels.



Required? false

Position? 5

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Style

The System.Drawing.FontStyle to apply to the text.



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Opacity <Int32>

The opacity of the text.



Required? false

Position? 7

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-X <Int32>

The X coordiante determining the position within the current image to render the text.



Required? false

Position? 8

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Y <Int32>

The Y coordiante determining the position within the current image to render the text.



Required? false

Position? 9

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-DropShadow [<SwitchParameter>]

Whether to apply a drop shadow to the text.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

ImageProcessor.ImageFactory





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$images dir *.png | Get-PIPImage | Add-PIPWatermark -Text "Copywrite Bob 2014"















RELATED LINKS