API Reference
Command
New-ImageQRCodePhoneNumber
Generates a QR code for dialling a phone number.
Remarks
Use this cmdlet when you want a scan action to immediately open the dialer with a predefined number.
Examples
Create a basic phone-number QR code
PS>
New-ImageQRCodePhoneNumber -Number '+123456' -FilePath phone.png
Generates a QR code that opens the dialer with the selected number.
Create a support hotline QR code
PS>
New-ImageQRCodePhoneNumber -Number '+48 500 600 700' -FilePath hotline.png -ForegroundColor DarkRed -PixelSize 18 -Show
Creates a styled call-now QR code suitable for posters, intranet pages, or support desks.
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-ImageQRCodePhoneNumber [-BackgroundColor <Color>] -FilePath <String> [-ForegroundColor <Color>] -Number <String> [-PixelSize <Int32>] [-Show] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BackgroundColor Color
- Background color of the QR code.
- FilePath String
- The image format is inferred from the file extension.
- ForegroundColor Color
- Foreground color of QR modules.
- Number String
- Phone number to dial.
- PixelSize Int32
- Pixel size for each QR module.
- Show SwitchParameter
- Opens the image after creation.