Skip to content

New Image

apobekiaris edited this page Sep 4, 2020 · 1 revision

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

New-Image

SYNOPSIS

Creates a new image file.

SYNTAX

New-Image [-Width] <Int32> [-Height] <Int32> [[-Color] <Color>] [[-ImageFormat] <ImageFormat>]
 [[-OutputBaseName] <String>] [[-OutputDirectory] <String>] [<CommonParameters>]

DESCRIPTION

Creates a new image file.

EXAMPLES

Example 1

PS C:\> new-image 800 600


    Directory: C:\

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---            9/4/2020 12:33 PM           3206 image.Png

Creates a new png (800x600) file in path.

PARAMETERS

-Color

{{ Fill Color Description }}

Type: Color
Parameter Sets: (All)
Aliases:

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

-Height

{{ Fill Height Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

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

-ImageFormat

{{ Fill ImageFormat Description }}

Type: ImageFormat
Parameter Sets: (All)
Aliases:

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

-OutputBaseName

{{ Fill OutputBaseName Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-OutputDirectory

{{ Fill OutputDirectory Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-Width

{{ Fill Width Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
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

None

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