/// <summary> /// Retrieves the dots per inch (dpi) occupied by a <see cref="SHELL_UI_COMPONENT "/> /// based on the current scale factor and <see cref="PROCESS_DPI_AWARENESS"/>. /// </summary> /// <param name="component">The type of shell component.</param> /// <returns>The DPI required for an icon of this type.</returns> public static int GetDpiForShellUiComponent(SHELL_UI_COMPONENT component) { if (IsPlatformSupported) { return((int)NativeMethods.GetDpiForShellUiComponent(component)); } return(DefaultDPI); }
/// <summary> /// Retrieves the dots per inch (dpi) occupied by a <see cref="SHELL_UI_COMPONENT "/> /// based on the current scale factor and <see cref="PROCESS_DPI_AWARENESS"/>. /// </summary> /// <param name="component">The type of shell component.</param> /// <returns>The DPI required for an icon of this type.</returns> public static int GetDpiForShellUiComponent(SHELL_UI_COMPONENT component) { if (IsPlatformSupported) { return (int)NativeMethods.GetDpiForShellUiComponent(component); } return DefaultDPI; }
public static extern int GetDpiForShellUIComponent(SHELL_UI_COMPONENT component);
public static extern uint GetDpiForShellUIComponent(SHELL_UI_COMPONENT Arg1);
public static extern uint GetDpiForShellUiComponent(SHELL_UI_COMPONENT component);