[]
Implements a Direct2D drawing surface.
public class GcDXGraphics : GcGraphics, IDisposable
public Factory1 Factory { get; }
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 boolprotected override IGlyphPathCache GetGlyphPathCache()
For internal use.
protected override InterpolationMode GetInterpolationMode()
protected override void InternalBeginBlockOperation()
For internal use.
protected override IClipRegion InternalCreateClipRegion(IPath graphicsPath)
graphicsPath IPathFor internal use.
protected override IClipRegion InternalCreateClipRegion(RectangleF bounds)
bounds System.Drawing.RectangleFFor internal use.
protected override IPath InternalCreatePath()
For internal use.
protected override void InternalDrawEllipse(RectangleF bounds, Pen pen)
bounds System.Drawing.RectangleFpen PenFor internal use.
protected override void InternalDrawImage(RectangleF dstRect, IImage image, float opacity)
dstRect System.Drawing.RectangleFimage IImageopacity floatFor internal use.
protected override void InternalDrawLine(PointF p1, PointF p2, Pen pen)
p1 System.Drawing.PointFp2 System.Drawing.PointFpen PenFor internal use.
protected override void InternalDrawLines(PointF[] points, Pen pen)
points System.Drawing.PointF[]pen PenFor internal use.
protected override void InternalDrawPath(IPath path, Pen pen)
For internal use.
protected override void InternalDrawPolygon(PointF[] points, Pen pen)
points System.Drawing.PointF[]pen PenFor internal use.
protected override void InternalDrawRectangle(RectangleF bounds, Pen pen)
bounds System.Drawing.RectangleFpen PenFor internal use.
protected override void InternalDrawRoundRect(RectangleF bounds, float radiusX, float radiusY, Pen pen)
bounds System.Drawing.RectangleFradiusX floatradiusY floatpen PenFor internal use.
protected override void InternalDrawTextLayout(TextLayout layout, PointF location)
layout TextLayoutlocation System.Drawing.PointFDraws a TextLayout at a specified location using graphic primitives.
protected override void InternalDrawTextLayoutAsPath(TextLayout layout, PointF location)
layout TextLayoutThe TextLayout to draw.
location System.Drawing.PointFThe location at which to draw the layout.
protected override void InternalEndBlockOperation()
For internal use.
protected override void InternalFillEllipse(RectangleF bounds, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
bounds System.Drawing.RectangleFbrush BrushbrushBounds System.Drawing.RectangleF?brushTransform System.Numerics.Matrix3x2?For internal use.
protected override void InternalFillEllipse(RectangleF bounds, Color color)
bounds System.Drawing.RectangleFcolor System.Drawing.ColorFor internal use.
protected override void InternalFillPath(IPath path, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
path IPathbrush BrushbrushBounds System.Drawing.RectangleF?brushTransform System.Numerics.Matrix3x2?For internal use.
protected override void InternalFillPath(IPath path, Color color)
path IPathcolor System.Drawing.ColorFor internal use.
protected override void InternalFillPolygon(PointF[] points, Brush brush, FillMode fillMode, RectangleF? brushBounds, Matrix3x2? brushTransform)
points System.Drawing.PointF[]brush BrushfillMode FillModebrushBounds System.Drawing.RectangleF?brushTransform System.Numerics.Matrix3x2?For internal use.
protected override void InternalFillPolygon(PointF[] points, Color color, FillMode fillMode)
points System.Drawing.PointF[]color System.Drawing.ColorfillMode FillModeFor internal use.
protected override void InternalFillRectangle(RectangleF bounds, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
bounds System.Drawing.RectangleFbrush BrushbrushBounds System.Drawing.RectangleF?brushTransform System.Numerics.Matrix3x2?For internal use.
protected override void InternalFillRectangle(RectangleF bounds, Color color)
bounds System.Drawing.RectangleFcolor System.Drawing.ColorFor internal use.
protected override void InternalFillRoundRect(RectangleF bounds, float radiusX, float radiusY, Brush brush, RectangleF? brushBounds, Matrix3x2? brushTransform)
bounds System.Drawing.RectangleFradiusX floatradiusY floatbrush BrushbrushBounds System.Drawing.RectangleF?brushTransform System.Numerics.Matrix3x2?For internal use.
protected override void InternalFillRoundRect(RectangleF bounds, float radiusX, float radiusY, Color color)
bounds System.Drawing.RectangleFradiusX floatradiusY floatcolor System.Drawing.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