< Back

Save-PIPImage

Sat Jan 18, 2020 6:51 pm

NAME Save-PIPImage



SYNOPSIS

Saves the current image to the specified file path.





SYNTAX

Save-PIPImage [-InputObject] <ImageFactory> [-Path] <String> [<CommonParameters>]





DESCRIPTION

Saves the current image to the specified file path.





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



-Path <String>

The path to save the image to.



Required? true

Position? 2

Default value

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

System.IO.FileInfo





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



PS C:\\>Get-ImageStream C:\\temp\\Capture.PNG | Set-ImageSize -Width 100 -Height 100 | Save-Image -Path

c:\\temp\\captureresize.png















RELATED LINKS