API Reference
Command
New-ImageQRCode
Generates a QR code image from plain text content.
Remarks
Use this cmdlet when the QR payload is already available as a raw string.
Examples
Create QR code
PS>
New-ImageQRCode -Content 'https://evotec.xyz' -FilePath qr.png
Show QR code after generation
PS>
New-ImageQRCode -Content 'text' -FilePath qr.png -Show
Create branded QR code
PS>
New-ImageQRCode -Content 'https://evotec.xyz' -FilePath qr-logo.png -LogoPath logo.png
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-ImageQRCode [-BackgroundColor <Color>] -Content <String> -FilePath <String> [-ForegroundColor <Color>] [-LogoPath <String>] [-PixelSize <Int32>] [-Show] [-Transparent] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BackgroundColor Color
- Background color of the QR code.
- Content String
- Content encoded in the QR code.
- FilePath String
- The image format is inferred from the file extension.
- ForegroundColor Color
- Foreground color of QR modules.
- LogoPath String
- Optional logo image to place at the center of the QR code.
- PixelSize Int32
- Pixel size for each QR module.
- Show SwitchParameter
- Open the image after creation.
- Transparent SwitchParameter
- Create the QR code with a transparent background.