Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 public static extern int GetDpiForShellUIComponent(SHELL_UI_COMPONENT component);
Exemplo n.º 4
0
 public static extern uint GetDpiForShellUIComponent(SHELL_UI_COMPONENT Arg1);
Exemplo n.º 5
0
 public static extern uint GetDpiForShellUiComponent(SHELL_UI_COMPONENT component);