Aracılığıyla paylaş


DpiAwareness.GetDpiXScale(Visual) Method

Definition

Gets the x-coordinate (or horizontal) DPI scale of the given Visual.

public:
[System::Runtime::CompilerServices::Extension]
 static double GetDpiXScale(System::Windows::Media::Visual ^ visual);
public static double GetDpiXScale (this System.Windows.Media.Visual visual);
static member GetDpiXScale : System.Windows.Media.Visual -> double
<Extension()>
Public Function GetDpiXScale (visual As Visual) As Double

Parameters

visual
Visual

The Visual from which to get the DPI scale.

Returns

The Visual's DPI scale.

Applies to