[]
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, IGcTransparencyMaskFilter filter)
srcGroup
IGcTransparencyGroupmaskType
TransparencyMaskTypemaskBounds
Rectanglefilter
IGcTransparencyMaskFilterPerforms cleanup operations on managed and unmanaged resources.
protected override void Dispose(bool disposing)
disposing
boolFor internal use.
protected override BlendMode GetBlendMode()
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()
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
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
PointFFor internal use.
protected override void InternalDrawTextLayoutAsPath(TextLayout layout, PointF location)
layout
TextLayoutlocation
PointFFor 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 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.
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
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