Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceContext2"/> class using an existing <see cref="Device2"/>.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="options">The options to be applied to the created device context.</param>
 /// <remarks>
 /// The new device context will not have a  selected target bitmap. The caller must create and select a bitmap as the target surface of the context.
 /// </remarks>
 /// <unmanaged>HRESULT ID2D1Device2::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out] ID2D1DeviceContext2** deviceContext2)</unmanaged>
 public DeviceContext2(Device2 device, DeviceContextOptions options)
     : base(IntPtr.Zero)
 {
     device.CreateDeviceContext(options, this);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceContext2"/> class using an existing <see cref="Device2"/>.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="options">The options to be applied to the created device context.</param>
 /// <remarks>
 /// The new device context will not have a  selected target bitmap. The caller must create and select a bitmap as the target surface of the context.
 /// </remarks>
 /// <unmanaged>HRESULT ID2D1Device2::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out] ID2D1DeviceContext2** deviceContext2)</unmanaged>
 public DeviceContext2(Device2 device, DeviceContextOptions options)
     : base(IntPtr.Zero)
 {
     device.CreateDeviceContext(options, this);
 }