/// <summary> /// Initializes a new instance of the <see cref="Device"/> class. /// </summary> /// <param name="surface">The surface.</param> /// <param name="creationProperties">The creation properties.</param> /// <unmanaged>HRESULT D2D1CreateDeviceContext([In] IDXGISurface* dxgiSurface,[In, Optional] const D2D1_CREATION_PROPERTIES* creationProperties,[Out] ID2D1DeviceContext** d2dDeviceContext)</unmanaged> public DeviceContext(SharpDX.DXGI.Surface surface, CreationProperties creationProperties) : base(IntPtr.Zero) { D2D1.CreateDeviceContext(surface, creationProperties, this); }
/// <summary> /// Initializes a new instance of the <see cref="DeviceContext"/> class. /// </summary> /// <param name="surface">The surface.</param> /// <unmanaged>HRESULT D2D1CreateDeviceContext([In] IDXGISurface* dxgiSurface,[In, Optional] const D2D1_CREATION_PROPERTIES* creationProperties,[Out] ID2D1DeviceContext** d2dDeviceContext)</unmanaged> public DeviceContext(SharpDX.DXGI.Surface surface) : base(IntPtr.Zero) { D2D1.CreateDeviceContext(surface, null, this); }