[]
Implements a drawing surface for GcBitmap.
public class GcBitmapGraphics : GcGraphics, IDisposable
Gets the source GcBitmap.
public GcBitmap Bitmap { get; }
Gets the height of the image, in DIPs.
public float Height { get; }
Gets the BitmapRenderer that is used to draw on the GcBitmap.
public BitmapRenderer Renderer { get; }
Gets the resolution of the current graphics (always 96 DPI for GcBitmapGraphics).
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; }
Gets the width of the image, in DIPs.
public float Width { get; }
For internal use.
public override object CreateTransparencyMask(IGcTransparencyGroup srcGroup, TransparencyMaskType maskType, Rectangle maskBounds)
srcGroup GrapeCity.Documents.Drawing.IGcTransparencyGroupmaskType GrapeCity.Documents.Drawing.TransparencyMaskTypemaskBounds System.Drawing.RectanglePerforms cleanup operations on managed and unmanaged resources.
protected override void Dispose(bool disposing)
disposing boolFor internal use.
protected override BlendMode GetBlendMode()
protected override IGlyphPathCache GetGlyphPathCache()
For internal use.
protected override InterpolationMode GetInterpolationMode()
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.PointFFor internal use.
protected override void InternalDrawTextLayoutAsPath(TextLayout layout, PointF location)
layout TextLayoutlocation System.Drawing.PointFFor 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 blend mode.
GcBitmapGraphics supports all blend modes, so this method always returns true.
public override bool IsBlendModeSupported(BlendMode blendMode)
blendMode BlendModeThe blend mode to check.
true.
Indicates whether this graphics implementation supports a specified interpolation mode.
GcBitmapGraphics supports all interpolation modes, so this method always returns true.
public override bool IsInterpolationModeSupported(InterpolationMode interpolationMode)
interpolationMode InterpolationModeThe interpolation mode to check.
true if the specified interpolation mode is supported by GcBitmapGraphics, false otherwise.
Stops redirecting drawing operations to the transparency layer that was created by the last PushTransparencyLayer(RectangleF?, float) call.
public override void PopTransparencyLayer()
Adds a transparency layer to the GcBitmapGraphics so that it receives all subsequent drawing operations until PopTransparencyLayer() is called.
public override void PushTransparencyLayer(RectangleF? contentBounds, float opacity)
contentBounds System.Drawing.RectangleF?The content bounds of the transparency layer. Content won't render outside these bounds. When set to null, the content bounds are effectively taken to be the bounds of the current GcBitmapGraphics.
opacity floatAn opacity value that is applied uniformly to all drawings in the layer when compositing to the backplate.
For internal use.
protected override void SetBlendMode(BlendMode value)
value BlendModeFor internal use.
protected override void SetInterpolationMode(InterpolationMode value)
value InterpolationModeFor internal use.
public override void SetTransparencyMask(object nativeMask)
nativeMask object