[]
Implements a Direct2D drawing surface.
public class GcDXGraphics : GcGraphics, IDisposable
public Factory1 Factory { get; }
For internal use. Gets the features supported by this graphics.
public override GcGraphicsFeatures Features { get; }
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; }
Gets an instance of the RenderTarget class.
public RenderTarget RenderTarget { get; }
Gets the resolution of the current graphics (always 96 DPI for GcDXGraphics).
public override float Resolution { get; set; }
Gets the resolution of the underlying drawing surface (pixels per inch).
public override float? SurfaceResolution { get; }
Gets or sets the transformation matrix of the current graphics.
public override Matrix3x2 Transform { get; set; }
Called after any draw action on the underlying render target.
protected virtual void AfterDrawAction()
Called before any draw action on the underlying render target.
protected virtual void BeforeDrawAction()
Creates a BitmapBrush from a HatchBrush, can be overridden in derived class.
protected virtual BitmapBrush CreateHatchBrush(HatchBrush hb)
hb
HatchBrushPerforms cleanup operations on managed and unmanaged resources.
protected override void Dispose(bool disposing)
disposing
boolFor internal use. Can be overridden in derived class and should return an IGlyphPathCache object to cache glyphs' paths during rendering.
protected override IGlyphPathCache GetGlyphPathCache()
For internal use.
protected override InterpolationMode GetInterpolationMode()
For internal use.
protected override void InternalBeginBlockOperation()
For internal use.
protected override IClipRegion InternalCreateClipRegion(IPath graphicsPath)
graphicsPath
IPathFor internal use.
protected override IClipRegion InternalCreateClipRegion(RectangleF bounds)
bounds
RectangleFFor internal use.
protected override IPath InternalCreatePath()
For internal use.
protected override void InternalDrawEllipse(RectangleF bounds, Pen pen)
bounds
RectangleFpen
PenFor internal use.
protected override void InternalDrawImage(RectangleF dstRect, IImage image, float opacity)
dstRect
RectangleFimage
IImageopacity
floatFor internal use.
protected override void InternalDrawLine(PointF p1, PointF p2, Pen pen)
For internal use.
protected override void InternalDrawLines(PointF[] points, Pen pen)
For internal use.
protected override void InternalDrawPath(IPath path, Pen pen)
For internal use.
protected override void InternalDrawPolygon(PointF[] points, Pen pen)
For internal use.
protected override void InternalDrawRectangle(RectangleF bounds, Pen pen)
bounds
RectangleFpen
PenFor internal use.
protected override void InternalDrawRoundRect(RectangleF bounds, float radiusX, float radiusY, Pen pen)
bounds
RectangleFradiusX
floatradiusY
floatpen
PenFor internal use.
protected override void InternalDrawTextLayout(TextLayout layout, PointF location)
layout
TextLayoutlocation
PointFDraws a TextLayout at a specified location using graphic primitives.
protected override void InternalDrawTextLayoutAsPath(TextLayout layout, PointF location)
layout
TextLayoutThe TextLayout to draw.
location
PointFThe location at which to draw the layout.
For internal use.
protected override void InternalEndBlockOperation()
For internal use.
protected override void InternalFillEllipse(RectangleF bounds, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
bounds
RectangleFbrush
BrushbrushBounds
RectangleF?brushTransform
Matrix3x2?For internal use.
protected override void InternalFillEllipse(RectangleF bounds, Color color)
bounds
RectangleFcolor
ColorFor internal use.
protected override void InternalFillPath(IPath path, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
path
IPathbrush
BrushbrushBounds
RectangleF?brushTransform
Matrix3x2?For internal use.
protected override void InternalFillPath(IPath path, Color color)
For internal use.
protected override void InternalFillPolygon(PointF[] points, Brush brush, FillMode fillMode, RectangleF? brushBounds, Matrix3x2? brushTransform)
points
PointF[]brush
BrushfillMode
FillModebrushBounds
RectangleF?brushTransform
Matrix3x2?For internal use.
protected override void InternalFillPolygon(PointF[] points, Color color, FillMode fillMode)
For internal use.
protected override void InternalFillRectangle(RectangleF bounds, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
bounds
RectangleFbrush
BrushbrushBounds
RectangleF?brushTransform
Matrix3x2?For internal use.
protected override void InternalFillRectangle(RectangleF bounds, Color color)
bounds
RectangleFcolor
ColorFor internal use.
protected override void InternalFillRoundRect(RectangleF bounds, float radiusX, float radiusY, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
bounds
RectangleFradiusX
floatradiusY
floatbrush
BrushbrushBounds
RectangleF?brushTransform
Matrix3x2?For internal use.
protected override void InternalFillRoundRect(RectangleF bounds, float radiusX, float radiusY, Color color)
bounds
RectangleFradiusX
floatradiusY
floatcolor
ColorFor internal use.
protected override void InternalRemoveClip(IClipRegion clipRegion)
clipRegion
IClipRegionFor internal use.
protected override void InternalSetClip(IClipRegion clipRegion)
clipRegion
IClipRegionIndicates whether this graphics implementation supports a specified interpolation mode.
The following interpolation modes are supported by GcDXGraphics:
public override bool IsInterpolationModeSupported(InterpolationMode interpolationMode)
interpolationMode
InterpolationModeThe interpolation mode to check.
true if the specified interpolation mode is supported by the current graphics, false otherwise.
For internal use.
protected override void SetInterpolationMode(InterpolationMode value)
value
InterpolationMode