[]
ID2D1DrawingStateBlock1
[Guid("689f1f85-c72e-4e33-8f19-85754efd5ace")]
public class DrawingStateBlock1 : DrawingStateBlock, IDisposable, IUnknown
Initializes a new instance of the DrawingStateBlock1 class.
public DrawingStateBlock1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetDescription / SetDescription
public DrawingStateDescription1 Description { get; set; }
Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock1 Create(Factory1 factory, DrawingStateDescription1 drawingStateDescription, RenderingParams textRenderingParams)
factory
Factory1an instance of Factory1
drawingStateDescription
DrawingStateDescription1A structure that contains antialiasing, transform, and tags information.
textRenderingParams
RenderingParamsOptional text parameters that indicate how text should be rendered.
Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock1 Create(Factory1 factory, DrawingStateDescription1 drawingStateDescription)
factory
Factory1an instance of Factory1
drawingStateDescription
DrawingStateDescription1A structure that contains antialiasing, transform, and tags information.
Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock1 Create(Factory1 factory, RenderingParams textRenderingParams)
factory
Factory1an instance of Factory1
textRenderingParams
RenderingParamsOptional text parameters that indicate how text should be rendered.
Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock1 Create(Factory1 factory)
void ID2D1DrawingStateBlock1::GetDescription([Out] D2D1_DRAWING_STATE_DESCRIPTION1* stateDescription)
public void GetDescription(out DrawingStateDescription1 stateDescription)
stateDescription
DrawingStateDescription1void ID2D1DrawingStateBlock1::SetDescription([In] const D2D1_DRAWING_STATE_DESCRIPTION1* stateDescription)
public void SetDescription(ref DrawingStateDescription1 stateDescription)
stateDescription
DrawingStateDescription1Performs an explicit conversion from System.IntPtr to DrawingStateBlock1.
public static explicit operator DrawingStateBlock1(IntPtr nativePointer)
nativePointer
System.IntPtr