/// <summary> /// Initializes a <see cref="DeviceContext2D">Direct2D device context</see> according to the specified settings. /// The base class retains ownership of the context and will dispose of it when appropriate. /// </summary> /// <param name="settings">The settings.</param> /// <returns>The initialized device context.</returns> protected void InitializeDevice(DeviceSettings2D settings) { var result = new DeviceContext2D(_form.Handle, settings); //userInterfaceRenderer = new UserInterfaceRenderer9( result.Device, settings.Width, settings.Height ); apiContext = result; Context2D = result; }
public void InitializeDevice() { DeviceSettings2D settings = new DeviceSettings2D { Width = ClientSize.Width, Height = ClientSize.Height }; var result = new DeviceContext2D(Handle, settings); apiContext = result; Context2D = result; }
/// <summary> /// Initializes a <see cref="DeviceContext2D">Direct2D device context</see> according to the specified settings. /// The base class retains ownership of the context and will dispose of it when appropriate. /// </summary> /// <param name="settings">The settings.</param> /// <returns>The initialized device context.</returns> protected void InitializeDevice( DeviceSettings2D settings ) { var result = new DeviceContext2D( _form.Handle, settings ); //userInterfaceRenderer = new UserInterfaceRenderer9( result.Device, settings.Width, settings.Height ); apiContext = result; Context2D = result; }