[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcDXGraphics

Class GcDXGraphics

Namespace
GrapeCity.Documents.Imaging.Windows
Assembly
GcDocs.Imaging.Windows.dll

Implements a Direct2D drawing surface.

public class GcDXGraphics : GcGraphics, IDisposable
Inheritance
GcDXGraphics
Implements
Derived
Inherited Members

Properties

Factory

public Factory1 Factory { get; }

Property Value

Factory1

Features

For internal use. Gets the features supported by this graphics.

public override GcGraphicsFeatures Features { get; }

Property Value

GcGraphicsFeatures

NearestNeighborMode

Gets or sets a value indicating whether the exact color of the nearest bitmap pixel is used when images are scaled.

public bool NearestNeighborMode { get; set; }

Property Value

bool

RenderTarget

Gets an instance of the RenderTarget class.

public RenderTarget RenderTarget { get; }

Property Value

RenderTarget

Resolution

Gets the resolution of the current graphics (always 96 DPI for GcDXGraphics).

public override float Resolution { get; set; }

Property Value

float

SurfaceResolution

Gets the resolution of the underlying drawing surface (pixels per inch).

public override float? SurfaceResolution { get; }

Property Value

float?

Transform

Gets or sets the transformation matrix of the current graphics.

public override Matrix3x2 Transform { get; set; }

Property Value

Matrix3x2

Methods

AfterDrawAction()

Called after any draw action on the underlying render target.

protected virtual void AfterDrawAction()

BeforeDrawAction()

Called before any draw action on the underlying render target.

protected virtual void BeforeDrawAction()

CreateHatchBrush(HatchBrush)

Creates a BitmapBrush from a HatchBrush, can be overridden in derived class.

protected virtual BitmapBrush CreateHatchBrush(HatchBrush hb)

Parameters

hb HatchBrush

Returns

BitmapBrush

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

GetGlyphPathCache()

For internal use. Can be overridden in derived class and should return an IGlyphPathCache object to cache glyphs' paths during rendering.

protected override IGlyphPathCache GetGlyphPathCache()

Returns

IGlyphPathCache

GetInterpolationMode()

For internal use.

protected override InterpolationMode GetInterpolationMode()

Returns

InterpolationMode

InternalBeginBlockOperation()

For internal use.

protected override void InternalBeginBlockOperation()

InternalCreateClipRegion(IPath)

For internal use.

protected override IClipRegion InternalCreateClipRegion(IPath graphicsPath)

Parameters

graphicsPath IPath

Returns

IClipRegion

InternalCreateClipRegion(RectangleF)

For internal use.

protected override IClipRegion InternalCreateClipRegion(RectangleF bounds)

Parameters

bounds RectangleF

Returns

IClipRegion

InternalCreatePath()

For internal use.

protected override IPath InternalCreatePath()

Returns

IPath

InternalDrawEllipse(RectangleF, Pen)

For internal use.

protected override void InternalDrawEllipse(RectangleF bounds, Pen pen)

Parameters

bounds RectangleF
pen Pen

InternalDrawImage(RectangleF, IImage, float)

For internal use.

protected override void InternalDrawImage(RectangleF dstRect, IImage image, float opacity)

Parameters

dstRect RectangleF
image IImage
opacity float

InternalDrawLine(PointF, PointF, Pen)

For internal use.

protected override void InternalDrawLine(PointF p1, PointF p2, Pen pen)

Parameters

p1 PointF
p2 PointF
pen Pen

InternalDrawLines(PointF[], Pen)

For internal use.

protected override void InternalDrawLines(PointF[] points, Pen pen)

Parameters

points PointF[]
pen Pen

InternalDrawPath(IPath, Pen)

For internal use.

protected override void InternalDrawPath(IPath path, Pen pen)

Parameters

path IPath
pen Pen

InternalDrawPolygon(PointF[], Pen)

For internal use.

protected override void InternalDrawPolygon(PointF[] points, Pen pen)

Parameters

points PointF[]
pen Pen

InternalDrawRectangle(RectangleF, Pen)

For internal use.

protected override void InternalDrawRectangle(RectangleF bounds, Pen pen)

Parameters

bounds RectangleF
pen Pen

InternalDrawRoundRect(RectangleF, float, float, Pen)

For internal use.

protected override void InternalDrawRoundRect(RectangleF bounds, float radiusX, float radiusY, Pen pen)

Parameters

bounds RectangleF
radiusX float
radiusY float
pen Pen

InternalDrawTextLayout(TextLayout, PointF)

For internal use.

protected override void InternalDrawTextLayout(TextLayout layout, PointF location)

Parameters

layout TextLayout
location PointF

InternalDrawTextLayoutAsPath(TextLayout, PointF)

Draws a TextLayout at a specified location using graphic primitives.

protected override void InternalDrawTextLayoutAsPath(TextLayout layout, PointF location)

Parameters

layout TextLayout

The TextLayout to draw.

location PointF

The location at which to draw the layout.

InternalEndBlockOperation()

For internal use.

protected override void InternalEndBlockOperation()

InternalFillEllipse(RectangleF, Brush, RectangleF?, Matrix3x2?)

For internal use.

protected override void InternalFillEllipse(RectangleF bounds, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)

Parameters

bounds RectangleF
brush Brush
brushBounds RectangleF?
brushTransform Matrix3x2?

InternalFillEllipse(RectangleF, Color)

For internal use.

protected override void InternalFillEllipse(RectangleF bounds, Color color)

Parameters

bounds RectangleF
color Color

InternalFillPath(IPath, Brush, RectangleF?, Matrix3x2?)

For internal use.

protected override void InternalFillPath(IPath path, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)

Parameters

path IPath
brush Brush
brushBounds RectangleF?
brushTransform Matrix3x2?

InternalFillPath(IPath, Color)

For internal use.

protected override void InternalFillPath(IPath path, Color color)

Parameters

path IPath
color Color

InternalFillPolygon(PointF[], Brush, FillMode, RectangleF?, Matrix3x2?)

For internal use.

protected override void InternalFillPolygon(PointF[] points, Brush brush, FillMode fillMode, RectangleF? brushBounds, Matrix3x2? brushTransform)

Parameters

points PointF[]
brush Brush
fillMode FillMode
brushBounds RectangleF?
brushTransform Matrix3x2?

InternalFillPolygon(PointF[], Color, FillMode)

For internal use.

protected override void InternalFillPolygon(PointF[] points, Color color, FillMode fillMode)

Parameters

points PointF[]
color Color
fillMode FillMode

InternalFillRectangle(RectangleF, Brush, RectangleF?, Matrix3x2?)

For internal use.

protected override void InternalFillRectangle(RectangleF bounds, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)

Parameters

bounds RectangleF
brush Brush
brushBounds RectangleF?
brushTransform Matrix3x2?

InternalFillRectangle(RectangleF, Color)

For internal use.

protected override void InternalFillRectangle(RectangleF bounds, Color color)

Parameters

bounds RectangleF
color Color

InternalFillRoundRect(RectangleF, float, float, Brush, RectangleF?, Matrix3x2?)

For internal use.

protected override void InternalFillRoundRect(RectangleF bounds, float radiusX, float radiusY, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)

Parameters

bounds RectangleF
radiusX float
radiusY float
brush Brush
brushBounds RectangleF?
brushTransform Matrix3x2?

InternalFillRoundRect(RectangleF, float, float, Color)

For internal use.

protected override void InternalFillRoundRect(RectangleF bounds, float radiusX, float radiusY, Color color)

Parameters

bounds RectangleF
radiusX float
radiusY float
color Color

InternalRemoveClip(IClipRegion)

For internal use.

protected override void InternalRemoveClip(IClipRegion clipRegion)

Parameters

clipRegion IClipRegion

InternalSetClip(IClipRegion)

For internal use.

protected override void InternalSetClip(IClipRegion clipRegion)

Parameters

clipRegion IClipRegion

IsInterpolationModeSupported(InterpolationMode)

Indicates whether this graphics implementation supports a specified interpolation mode.

The following interpolation modes are supported by GcDXGraphics:

public override bool IsInterpolationModeSupported(InterpolationMode interpolationMode)

Parameters

interpolationMode InterpolationMode

The interpolation mode to check.

Returns

bool

true if the specified interpolation mode is supported by the current graphics, false otherwise.

SetInterpolationMode(InterpolationMode)

For internal use.

protected override void SetInterpolationMode(InterpolationMode value)

Parameters

value InterpolationMode