/// <summary> /// Creates an <see cref="SharpDX.Direct2D1.DrawingStateBlock1"/> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. /// </summary> /// <param name="factory">an instance of <see cref = "SharpDX.Direct2D1.Factory1" /></param> /// <param name="textRenderingParams">Optional text parameters that indicate how text should be rendered. </param> public DrawingStateBlock1(Factory1 factory, SharpDX.DirectWrite.RenderingParams textRenderingParams) : base(IntPtr.Zero) { factory.CreateDrawingStateBlock(null, textRenderingParams, this); }
/// <summary> /// Creates an <see cref="SharpDX.Direct2D1.DrawingStateBlock1"/> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. /// </summary> /// <param name="factory">an instance of <see cref = "SharpDX.Direct2D1.Factory1" /></param> /// <param name="drawingStateDescription">A structure that contains antialiasing, transform, and tags information.</param> /// <param name="textRenderingParams">Optional text parameters that indicate how text should be rendered. </param> public DrawingStateBlock1(Factory1 factory, SharpDX.Direct2D1.DrawingStateDescription1 drawingStateDescription, SharpDX.DirectWrite.RenderingParams textRenderingParams) : base(IntPtr.Zero) { factory.CreateDrawingStateBlock(drawingStateDescription, textRenderingParams, this); }
/// <summary> /// Creates an <see cref="SharpDX.Direct2D1.DrawingStateBlock1"/> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. /// </summary> /// <param name="factory">an instance of <see cref = "SharpDX.Direct2D1.Factory1" /></param> public DrawingStateBlock1(Factory1 factory) : base(IntPtr.Zero) { factory.CreateDrawingStateBlock(null, null, this); }