[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.CommandSinkNative

Class CommandSinkNative

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

ID2D1CommandSink

[Guid("54d7898a-a061-40a7-bec7-e465bcba2c4f")]
public class CommandSinkNative : ComObjectCallback, IUnknown, ICommandSink, ICallbackable, IDisposable
Inheritance
object
CommandSinkNative
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

CommandSinkNative(IntPtr)

Initializes a new instance of the CommandSinkNative class.

public CommandSinkNative(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

BeginDraw()

HRESULT ID2D1CommandSink::BeginDraw()

public void BeginDraw()

Clear(ColorF?)

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

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

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

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

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

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

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

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

public void DrawRectangle(RectF rect, Brush brush, float strokeWidth, StrokeStyle strokeStyle)

Parameters

rect RectF
brush Brush
strokeWidth float
strokeStyle StrokeStyle

EndDraw()

HRESULT ID2D1CommandSink::EndDraw()

public void EndDraw()

FillGeometry(Geometry, Brush, Brush)

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

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

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

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

public void FillRectangle(RectF rect, Brush brush)

Parameters

rect RectF
brush Brush

PopAxisAlignedClip()

HRESULT ID2D1CommandSink::PopAxisAlignedClip()

public void PopAxisAlignedClip()

PopLayer()

HRESULT ID2D1CommandSink::PopLayer()

public void PopLayer()

PushAxisAlignedClip(RectF, AntialiasMode)

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

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

public void PushLayer(ref LayerParameters1 layerParameters1, Layer layer)

Parameters

layerParameters1 LayerParameters1
layer Layer

SetAntialiasMode(AntialiasMode)

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

public void SetAntialiasMode(AntialiasMode antialiasMode)

Parameters

antialiasMode AntialiasMode

SetPrimitiveBlend(PrimitiveBlend)

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

public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend)

Parameters

primitiveBlend PrimitiveBlend

SetTags(long, long)

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

public void SetTags(long tag1, long tag2)

Parameters

tag1 long
tag2 long

SetTextAntialiasMode(TextAntialiasMode)

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

public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode)

Parameters

textAntialiasMode TextAntialiasMode

SetTextRenderingParams(RenderingParams)

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

public void SetTextRenderingParams(RenderingParams textRenderingParams)

Parameters

textRenderingParams RenderingParams

SetTransform(ref Matrix3x2)

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

public void SetTransform(ref Matrix3x2 transform)

Parameters

transform Matrix3x2

SetUnitMode(UnitMode)

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

public void SetUnitMode(UnitMode unitMode)

Parameters

unitMode UnitMode

Operators

explicit operator CommandSinkNative(IntPtr)

Performs an explicit conversion from System.IntPtr to CommandSinkNative.

public static explicit operator CommandSinkNative(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

CommandSinkNative