[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.ICommandSink

Interface ICommandSink

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1CommandSink

[Guid("54d7898a-a061-40a7-bec7-e465bcba2c4f")]
[Shadow(typeof(CommandSinkShadow))]
public interface ICommandSink : ICallbackable, IDisposable
Inherited Members
System.IDisposable.Dispose()

Methods

BeginDraw()

HRESULT ID2D1CommandSink::BeginDraw()

void BeginDraw()

Clear(ColorF?)

HRESULT ID2D1CommandSink::Clear([In, Optional] const D2D_COLOR_F* color)

void Clear(ColorF? color = null)

Parameters

color ColorF?

DrawBitmap(Bitmap, RectF?, float, InterpolationMode, RectF?, Matrix4x4?)

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)

Parameters

bitmap Bitmap
destinationRectangle RectF?
opacity float
interpolationMode InterpolationMode
sourceRectangle RectF?
perspectiveTransformRef Matrix4x4?

DrawGdiMetafile(GdiMetafile, Point2F?)

HRESULT ID2D1CommandSink::DrawGdiMetafile([In] ID2D1GdiMetafile* gdiMetafile,[In, Optional] const D2D_POINT_2F* targetOffset)

void DrawGdiMetafile(GdiMetafile gdiMetafile, Point2F? targetOffset)

Parameters

gdiMetafile GdiMetafile
targetOffset Point2F?

DrawGeometry(Geometry, Brush, float, StrokeStyle)

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)

Parameters

geometry Geometry
brush Brush
strokeWidth float
strokeStyle StrokeStyle

DrawGlyphRun(Point2F, GlyphRun, GlyphRunDescription, Brush, MeasuringMode)

HRESULT 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)

Parameters

baselineOrigin Point2F
glyphRun GlyphRun
glyphRunDescription GlyphRunDescription
foregroundBrush Brush
measuringMode MeasuringMode

DrawImage(Image, Point2F?, RectF?, InterpolationMode, CompositeMode)

HRESULT 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)

Parameters

image Image
targetOffset Point2F?
imageRectangle RectF?
interpolationMode InterpolationMode
compositeMode CompositeMode

DrawLine(Point2F, Point2F, Brush, float, StrokeStyle)

HRESULT 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)

Parameters

point0 Point2F
point1 Point2F
brush Brush
strokeWidth float
strokeStyle StrokeStyle

DrawRectangle(RectF, Brush, float, StrokeStyle)

HRESULT 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)

Parameters

rect RectF
brush Brush
strokeWidth float
strokeStyle StrokeStyle

EndDraw()

HRESULT ID2D1CommandSink::EndDraw()

void EndDraw()

FillGeometry(Geometry, Brush, Brush)

HRESULT ID2D1CommandSink::FillGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In, Optional] ID2D1Brush* opacityBrush)

void FillGeometry(Geometry geometry, Brush brush, Brush opacityBrush)

Parameters

geometry Geometry
brush Brush
opacityBrush Brush

FillMesh(Mesh, Brush)

HRESULT ID2D1CommandSink::FillMesh([In] ID2D1Mesh* mesh,[In] ID2D1Brush* brush)

void FillMesh(Mesh mesh, Brush brush)

Parameters

mesh Mesh
brush Brush

FillOpacityMask(Bitmap, Brush, RectF?, RectF?)

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)

Parameters

opacityMask Bitmap
brush Brush
destinationRectangle RectF?
sourceRectangle RectF?

FillRectangle(RectF, Brush)

HRESULT ID2D1CommandSink::FillRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush)

void FillRectangle(RectF rect, Brush brush)

Parameters

rect RectF
brush Brush

PopAxisAlignedClip()

HRESULT ID2D1CommandSink::PopAxisAlignedClip()

void PopAxisAlignedClip()

PopLayer()

HRESULT ID2D1CommandSink::PopLayer()

void PopLayer()

PushAxisAlignedClip(RectF, AntialiasMode)

HRESULT ID2D1CommandSink::PushAxisAlignedClip([In] const D2D_RECT_F* clipRect,[In] D2D1_ANTIALIAS_MODE antialiasMode)

void PushAxisAlignedClip(RectF clipRect, AntialiasMode antialiasMode)

Parameters

clipRect RectF
antialiasMode AntialiasMode

PushLayer(ref LayerParameters1, Layer)

HRESULT ID2D1CommandSink::PushLayer([In] const D2D1_LAYER_PARAMETERS1* layerParameters1,[In, Optional] ID2D1Layer* layer)

void PushLayer(ref LayerParameters1 layerParameters1, Layer layer)

Parameters

layerParameters1 LayerParameters1
layer Layer

SetAntialiasMode(AntialiasMode)

HRESULT ID2D1CommandSink::SetAntialiasMode([In] D2D1_ANTIALIAS_MODE antialiasMode)

void SetAntialiasMode(AntialiasMode antialiasMode)

Parameters

antialiasMode AntialiasMode

SetPrimitiveBlend(PrimitiveBlend)

HRESULT ID2D1CommandSink::SetPrimitiveBlend([In] D2D1_PRIMITIVE_BLEND primitiveBlend)

void SetPrimitiveBlend(PrimitiveBlend primitiveBlend)

Parameters

primitiveBlend PrimitiveBlend

SetTags(long, long)

HRESULT ID2D1CommandSink::SetTags([In] unsigned longlong tag1,[In] unsigned longlong tag2)

void SetTags(long tag1, long tag2)

Parameters

tag1 long
tag2 long

SetTextAntialiasMode(TextAntialiasMode)

HRESULT ID2D1CommandSink::SetTextAntialiasMode([In] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode)

void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode)

Parameters

textAntialiasMode TextAntialiasMode

SetTextRenderingParams(RenderingParams)

HRESULT ID2D1CommandSink::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)

void SetTextRenderingParams(RenderingParams textRenderingParams)

Parameters

textRenderingParams RenderingParams

SetTransform(ref Matrix3x2)

HRESULT ID2D1CommandSink::SetTransform([In] const D2D_MATRIX_3X2_F* transform)

void SetTransform(ref Matrix3x2 transform)

Parameters

transform Matrix3x2

SetUnitMode(UnitMode)

HRESULT ID2D1CommandSink::SetUnitMode([In] D2D1_UNIT_MODE unitMode)

void SetUnitMode(UnitMode unitMode)

Parameters

unitMode UnitMode