[]
ID2D1CommandSink
[Guid("54d7898a-a061-40a7-bec7-e465bcba2c4f")]
[Shadow(typeof(CommandSinkShadow))]
public interface ICommandSink : ICallbackable, IDisposable
HRESULT ID2D1CommandSink::BeginDraw()
void BeginDraw()
HRESULT ID2D1CommandSink::Clear([In, Optional] const D2D_COLOR_F* color)
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)
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)
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)
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)
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)
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)
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)
void DrawRectangle(RectF rect, Brush brush, float strokeWidth, StrokeStyle strokeStyle)
rect
RectFbrush
BrushstrokeWidth
floatstrokeStyle
StrokeStyleHRESULT ID2D1CommandSink::EndDraw()
void EndDraw()
HRESULT ID2D1CommandSink::FillGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In, Optional] ID2D1Brush* opacityBrush)
void FillGeometry(Geometry geometry, Brush brush, Brush opacityBrush)
HRESULT ID2D1CommandSink::FillMesh([In] ID2D1Mesh* mesh,[In] ID2D1Brush* brush)
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)
void FillOpacityMask(Bitmap opacityMask, Brush brush, RectF? destinationRectangle, RectF? sourceRectangle)
HRESULT ID2D1CommandSink::FillRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush)
void FillRectangle(RectF rect, Brush brush)
HRESULT ID2D1CommandSink::PopAxisAlignedClip()
void PopAxisAlignedClip()
HRESULT ID2D1CommandSink::PopLayer()
void PopLayer()
HRESULT ID2D1CommandSink::PushAxisAlignedClip([In] const D2D_RECT_F* clipRect,[In] D2D1_ANTIALIAS_MODE antialiasMode)
void PushAxisAlignedClip(RectF clipRect, AntialiasMode antialiasMode)
clipRect
RectFantialiasMode
AntialiasModeHRESULT ID2D1CommandSink::PushLayer([In] const D2D1_LAYER_PARAMETERS1* layerParameters1,[In, Optional] ID2D1Layer* layer)
void PushLayer(ref LayerParameters1 layerParameters1, Layer layer)
layerParameters1
LayerParameters1layer
LayerHRESULT ID2D1CommandSink::SetAntialiasMode([In] D2D1_ANTIALIAS_MODE antialiasMode)
void SetAntialiasMode(AntialiasMode antialiasMode)
antialiasMode
AntialiasModeHRESULT ID2D1CommandSink::SetPrimitiveBlend([In] D2D1_PRIMITIVE_BLEND primitiveBlend)
void SetPrimitiveBlend(PrimitiveBlend primitiveBlend)
primitiveBlend
PrimitiveBlendHRESULT ID2D1CommandSink::SetTags([In] unsigned longlong tag1,[In] unsigned longlong tag2)
void SetTags(long tag1, long tag2)
tag1
longtag2
longHRESULT ID2D1CommandSink::SetTextAntialiasMode([In] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode)
void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode)
textAntialiasMode
TextAntialiasModeHRESULT ID2D1CommandSink::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)
void SetTextRenderingParams(RenderingParams textRenderingParams)
textRenderingParams
RenderingParamsHRESULT ID2D1CommandSink::SetTransform([In] const D2D_MATRIX_3X2_F* transform)
void SetTransform(ref Matrix3x2 transform)
transform
Matrix3x2HRESULT ID2D1CommandSink::SetUnitMode([In] D2D1_UNIT_MODE unitMode)
void SetUnitMode(UnitMode unitMode)
unitMode
UnitMode