Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets the preferred scale factor for a display device.
Syntax
DEVICE_SCALE_FACTOR GetScaleFactorForDevice(
[in] DISPLAY_DEVICE_TYPE deviceType
);
Parameters
[in] deviceType
Type: DISPLAY_DEVICE_TYPE
The value that indicates the type of the display device.
Return value
Type: DEVICE_SCALE_FACTOR
A value that indicates the scale factor that should be used with the specified DISPLAY_DEVICE_TYPE.
| Return code/value | Description |
|---|---|
|
Use a scale factor of 1x. |
|
Use a scale factor of 1.4x. |
|
Use a scale factor of 1.8x. |
Remarks
The default DEVICE_SCALE_FACTOR is SCALE_100_PERCENT.
Use the scale factor that is returned to scale point values for fonts and pixel values.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Target Platform | Windows |
| Header | shellscalingapi.h |
| Library | OneCore.Lib |
| DLL | Shcore.dll |