[]
ID2D1DrawingStateBlock
[Guid("28506e39-ebf6-46a1-bb47-fd85565ab957")]
public class DrawingStateBlock : Resource, IDisposable, IUnknown
Initializes a new instance of the DrawingStateBlock class.
public DrawingStateBlock(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetDescription / SetDescription
public DrawingStateDescription Description { get; set; }
Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock Create(Factory factory, DrawingStateDescription drawingStateDescription)
factory
Factoryan instance of Factory
drawingStateDescription
DrawingStateDescriptionA structure that contains antialiasing, transform, and tags information.
Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock Create(Factory factory, RenderingParams textRenderingParams)
factory
Factoryan instance of Factory
textRenderingParams
RenderingParamsOptional text parameters that indicate how text should be rendered.
Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock Create(Factory factory, DrawingStateDescription? drawingStateDescription, RenderingParams textRenderingParams)
factory
Factoryan instance of Factory
drawingStateDescription
DrawingStateDescription?A structure that contains antialiasing, transform, and tags information.
textRenderingParams
RenderingParamsOptional text parameters that indicate how text should be rendered.
Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.
public static DrawingStateBlock Create(Factory factory)
void ID2D1DrawingStateBlock::GetDescription([Out] D2D1_DRAWING_STATE_DESCRIPTION* stateDescription)
public void GetDescription(out DrawingStateDescription stateDescription)
stateDescription
DrawingStateDescriptionvoid ID2D1DrawingStateBlock::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams)
public RenderingParams GetTextRenderingParams()
void ID2D1DrawingStateBlock::SetDescription([In] const D2D1_DRAWING_STATE_DESCRIPTION* stateDescription)
public void SetDescription(ref DrawingStateDescription stateDescription)
stateDescription
DrawingStateDescriptionvoid ID2D1DrawingStateBlock::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)
public void SetTextRenderingParams(RenderingParams textRenderingParams)
textRenderingParams
RenderingParamsPerforms an explicit conversion from System.IntPtr to DrawingStateBlock.
public static explicit operator DrawingStateBlock(IntPtr nativePointer)
nativePointer
System.IntPtr