D3DImage Constructor (Double, Double)

 

Initializes a new instance of the D3DImage class with the specified display resolution.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public:
[SecurityCriticalAttribute]
D3DImage(
	double dpiX,
	double dpiY
)

Parameters

dpiX
Type: System::Double

The display resolution on the x-axis.

dpiY
Type: System::Double

The display resolution on the y-axis.

Exception Condition
ArgumentOutOfRangeException

dpiX or dpiY is less than zero.

The default display resolution is 1/96th inch.

SecurityPermission

for access to unmanaged resources. Security action: Demand. Associated enumeration: SecurityPermissionFlag::UnmanagedCode

.NET Framework
Available since 3.0
Return to top
Show: