API Reference
Command
New-BGInfoImage
Creates a BGInfo image overlay definition.
Remarks
Creates a BGInfo image overlay definition.
Examples
EXAMPLE 1
New-BGInfoImage -Path 'C:\Path'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-BGInfoImage [-Anchor <TopLeft>] [-Fit <Stretch|Contain|Cover|Center|Tile>] [-Height <Int32>] [-OffsetX <Int32>] [-OffsetY <Int32>] [-Opacity <Double>] -Path <String> [-PositionX <Int32>] [-PositionY <Int32>] [-Width <Int32>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Anchor BgInfoTextPosition
- Anchor position for placement.
- Possible values:
TopLeft,TopCenter,TopRight,MiddleLeft,MiddleCenter,MiddleRight,BottomLeft,BottomCenter,BottomRight - Fit BgInfoImageFit
- How the image is fitted inside the destination rectangle.
- Possible values:
Stretch,Contain,Cover,Center,Tile - Height Int32
- Target image height in pixels. Omit with Width to preserve aspect ratio.
- OffsetX Int32
- Horizontal offset from the anchor.
- OffsetY Int32
- Vertical offset from the anchor.
- Opacity Double
- Image opacity from zero to one.
- Path String
- Path to the image file.
- PositionX Int32
- Absolute X position for placement.
- PositionY Int32
- Absolute Y position for placement.
- Width Int32
- Target image width in pixels. Omit with Height to preserve aspect ratio.
Outputs
PowerBGInfo.BgInfoImage