示例#1
0
 /// <summary>
 /// Creates an <see cref="SharpDX.Direct2D1.DrawingStateBlock"/> 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.Factory" /></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 DrawingStateBlock(Factory factory, SharpDX.Direct2D1.DrawingStateDescription?drawingStateDescription, SharpDX.DirectWrite.RenderingParams textRenderingParams)
     : base(IntPtr.Zero)
 {
     factory.CreateDrawingStateBlock(drawingStateDescription, textRenderingParams, this);
 }