[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcDXGraphics

GcDXGraphics Class

Implements a Direct2D drawing surface.

Implements
Namespace: GrapeCity.Documents.Imaging.Windows
Assembly: DS.Documents.Imaging.Windows.dll
Syntax
public class GcDXGraphics : GcGraphics, IDisposable
Public Class GcDXGraphics
    Inherits GcGraphics
    Implements IDisposable

Properties

Name Description
Factory
Features

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

NearestNeighborMode

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

RenderTarget

Gets an instance of the GrapeCity.Documents.DX.Direct2D.RenderTarget class.

Resolution

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

SurfaceResolution

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

Transform

Gets or sets the transformation matrix of the current graphics.

Methods

Name Description
AfterDrawAction()

Called after any draw action on the underlying render target.

BeforeDrawAction()

Called before any draw action on the underlying render target.

CreateHatchBrush(HatchBrush)

Creates a GrapeCity.Documents.DX.Direct2D.BitmapBrush from a HatchBrush, can be overridden in derived class.

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

GetGlyphPathCache()

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

GetInterpolationMode()

For internal use.

InternalBeginBlockOperation()

For internal use.

InternalCreateClipRegion(IPath)

For internal use.

InternalCreateClipRegion(RectangleF)

For internal use.

InternalCreatePath()

For internal use.

InternalDrawEllipse(RectangleF, Pen)

For internal use.

InternalDrawImage(RectangleF, IImage, float)

For internal use.

InternalDrawLine(PointF, PointF, Pen)

For internal use.

InternalDrawLines(PointF[], Pen)

For internal use.

InternalDrawPath(IPath, Pen)

For internal use.

InternalDrawPolygon(PointF[], Pen)

For internal use.

InternalDrawRectangle(RectangleF, Pen)

For internal use.

InternalDrawRoundRect(RectangleF, float, float, Pen)

For internal use.

InternalDrawTextLayout(TextLayout, PointF)

For internal use.

InternalDrawTextLayoutAsPath(TextLayout, PointF)

Draws a TextLayout at a specified location using graphic primitives.

InternalEndBlockOperation()

For internal use.

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

For internal use.

InternalFillEllipse(RectangleF, Color)

For internal use.

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

For internal use.

InternalFillPath(IPath, Color)

For internal use.

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

For internal use.

InternalFillPolygon(PointF[], Color, FillMode)

For internal use.

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

For internal use.

InternalFillRectangle(RectangleF, Color)

For internal use.

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

For internal use.

InternalFillRoundRect(RectangleF, float, float, Color)

For internal use.

InternalRemoveClip(IClipRegion)

For internal use.

InternalSetClip(IClipRegion)

For internal use.

IsInterpolationModeSupported(InterpolationMode)

Indicates whether this graphics implementation supports a specified interpolation mode.

The following interpolation modes are supported by GcDXGraphics:

SetInterpolationMode(InterpolationMode)

For internal use.