[]
ID2D1CommandSink
[Guid("54d7898a-a061-40a7-bec7-e465bcba2c4f")]
public class CommandSinkNative : ComObjectCallback, IUnknown, ICommandSink, ICallbackable, IDisposable
Initializes a new instance of the CommandSinkNative class.
public CommandSinkNative(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT ID2D1CommandSink::BeginDraw()
public void BeginDraw()
HRESULT ID2D1CommandSink::Clear([In, Optional] const D2D_COLOR_F* color)
public void Clear(ColorF? color = null)
color
ColorF?HRESULT ID2D1CommandSink::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_F* destinationRectangle,[In] float opacity,[In] D2D1_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D_RECT_F* sourceRectangle,[In, Optional] const D2D_MATRIX_4X4_F* perspectiveTransform)
public void DrawBitmap(Bitmap bitmap, RectF? destinationRectangle, float opacity, InterpolationMode interpolationMode, RectF? sourceRectangle, Matrix4x4? perspectiveTransformRef)
bitmap
BitmapdestinationRectangle
RectF?opacity
floatinterpolationMode
InterpolationModesourceRectangle
RectF?perspectiveTransformRef
Matrix4x4?HRESULT ID2D1CommandSink::DrawGdiMetafile([In] ID2D1GdiMetafile* gdiMetafile,[In, Optional] const D2D_POINT_2F* targetOffset)
public void DrawGdiMetafile(GdiMetafile gdiMetafile, Point2F? targetOffset)
gdiMetafile
GdiMetafiletargetOffset
Point2F?HRESULT ID2D1CommandSink::DrawGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)
public void DrawGeometry(Geometry geometry, Brush brush, float strokeWidth, StrokeStyle strokeStyle)
geometry
Geometrybrush
BrushstrokeWidth
floatstrokeStyle
StrokeStyleHRESULT ID2D1CommandSink::DrawGlyphRun([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In, Optional] const DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription,[In] ID2D1Brush* foregroundBrush,[In] DWRITE_MEASURING_MODE measuringMode)
public void DrawGlyphRun(Point2F baselineOrigin, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, Brush foregroundBrush, MeasuringMode measuringMode)
baselineOrigin
Point2FglyphRun
GlyphRunglyphRunDescription
GlyphRunDescriptionforegroundBrush
BrushmeasuringMode
MeasuringModeHRESULT ID2D1CommandSink::DrawImage([In] ID2D1Image* image,[In, Optional] const D2D_POINT_2F* targetOffset,[In, Optional] const D2D_RECT_F* imageRectangle,[In] D2D1_INTERPOLATION_MODE interpolationMode,[In] D2D1_COMPOSITE_MODE compositeMode)
public void DrawImage(Image image, Point2F? targetOffset, RectF? imageRectangle, InterpolationMode interpolationMode, CompositeMode compositeMode)
image
ImagetargetOffset
Point2F?imageRectangle
RectF?interpolationMode
InterpolationModecompositeMode
CompositeModeHRESULT ID2D1CommandSink::DrawLine([In] D2D_POINT_2F point0,[In] D2D_POINT_2F point1,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)
public void DrawLine(Point2F point0, Point2F point1, Brush brush, float strokeWidth, StrokeStyle strokeStyle)
point0
Point2Fpoint1
Point2Fbrush
BrushstrokeWidth
floatstrokeStyle
StrokeStyleHRESULT ID2D1CommandSink::DrawRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)
public void DrawRectangle(RectF rect, Brush brush, float strokeWidth, StrokeStyle strokeStyle)
rect
RectFbrush
BrushstrokeWidth
floatstrokeStyle
StrokeStyleHRESULT ID2D1CommandSink::EndDraw()
public void EndDraw()
HRESULT ID2D1CommandSink::FillGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In, Optional] ID2D1Brush* opacityBrush)
public void FillGeometry(Geometry geometry, Brush brush, Brush opacityBrush)
HRESULT ID2D1CommandSink::FillMesh([In] ID2D1Mesh* mesh,[In] ID2D1Brush* brush)
public void FillMesh(Mesh mesh, Brush brush)
HRESULT ID2D1CommandSink::FillOpacityMask([In] ID2D1Bitmap* opacityMask,[In] ID2D1Brush* brush,[In, Optional] const D2D_RECT_F* destinationRectangle,[In, Optional] const D2D_RECT_F* sourceRectangle)
public void FillOpacityMask(Bitmap opacityMask, Brush brush, RectF? destinationRectangle, RectF? sourceRectangle)
HRESULT ID2D1CommandSink::FillRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush)
public void FillRectangle(RectF rect, Brush brush)
HRESULT ID2D1CommandSink::PopAxisAlignedClip()
public void PopAxisAlignedClip()
HRESULT ID2D1CommandSink::PopLayer()
public void PopLayer()
HRESULT ID2D1CommandSink::PushAxisAlignedClip([In] const D2D_RECT_F* clipRect,[In] D2D1_ANTIALIAS_MODE antialiasMode)
public void PushAxisAlignedClip(RectF clipRect, AntialiasMode antialiasMode)
clipRect
RectFantialiasMode
AntialiasModeHRESULT ID2D1CommandSink::PushLayer([In] const D2D1_LAYER_PARAMETERS1* layerParameters1,[In, Optional] ID2D1Layer* layer)
public void PushLayer(ref LayerParameters1 layerParameters1, Layer layer)
layerParameters1
LayerParameters1layer
LayerHRESULT ID2D1CommandSink::SetAntialiasMode([In] D2D1_ANTIALIAS_MODE antialiasMode)
public void SetAntialiasMode(AntialiasMode antialiasMode)
antialiasMode
AntialiasModeHRESULT ID2D1CommandSink::SetPrimitiveBlend([In] D2D1_PRIMITIVE_BLEND primitiveBlend)
public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend)
primitiveBlend
PrimitiveBlendHRESULT ID2D1CommandSink::SetTags([In] unsigned longlong tag1,[In] unsigned longlong tag2)
public void SetTags(long tag1, long tag2)
tag1
longtag2
longHRESULT ID2D1CommandSink::SetTextAntialiasMode([In] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode)
public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode)
textAntialiasMode
TextAntialiasModeHRESULT ID2D1CommandSink::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)
public void SetTextRenderingParams(RenderingParams textRenderingParams)
textRenderingParams
RenderingParamsHRESULT ID2D1CommandSink::SetTransform([In] const D2D_MATRIX_3X2_F* transform)
public void SetTransform(ref Matrix3x2 transform)
transform
Matrix3x2HRESULT ID2D1CommandSink::SetUnitMode([In] D2D1_UNIT_MODE unitMode)
public void SetUnitMode(UnitMode unitMode)
unitMode
UnitModePerforms an explicit conversion from System.IntPtr to CommandSinkNative.
public static explicit operator CommandSinkNative(IntPtr nativePointer)
nativePointer
System.IntPtr