Get-SpectreImage
Description
Displays an image in the console using CanvasImage. The image can be resized to a maximum width if desired.
Examples
Example 1
This example demonstrates how to display an image in the console.
Get-SpectreImage -ImagePath ".\private\images\smiley.png" -MaxWidth 40
Parameters
ImagePath
The path to the image file to be displayed.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] | false | 1 | false |
MaxWidth
The maximum width of the image. If not specified, the image will be displayed at its original size.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] | false | 2 | false |
Syntax
Get-SpectreImage [[-ImagePath] <String>] [[-MaxWidth] <Int32>] [<CommonParameters>]