Skip to content

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.

TypeRequiredPositionPipelineInput
[String]false1false

MaxWidth

The maximum width of the image. If not specified, the image will be displayed at its original size.

TypeRequiredPositionPipelineInput
[Int32]false2false

Syntax

Get-SpectreImage [[-ImagePath] <String>] [[-MaxWidth] <Int32>] [<CommonParameters>]