[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Skia.GcSkiaGraphics

GcSkiaGraphics Class

Implements a drawing surface based on SkiaSharp.SKSurface and SkiaSharp.SKCanvas.

Inheritance
GcSkiaGraphics
Implements
Namespace: GrapeCity.Documents.Imaging.Skia
Assembly: DS.Documents.Imaging.Skia.dll
Syntax
public class GcSkiaGraphics : GcGraphics, IDisposable
Public Class GcSkiaGraphics
    Inherits GcGraphics
    Implements IDisposable

Constructors

Name Description
GcSkiaGraphics(int, int, bool, Color?)

Initializes a new instance of the GcSkiaGraphics.

Properties

Name Description
Aliased

Gets or sets a value indicating whether the graphic objects are drawn without anti-aliasing.

The default is false.

FontCache

Gets or sets the shared instance of a SkiaFontCache object.

Height

Gets the height of the image, in device-independent pixels (1/96 of an inch).

Opaque

Gets a value indicating whether the alpha channel should be ignored.

ResizeQuality

Gets or sets the resizing filter quality for images.

The default is Medium.

Resolution

Gets the resolution of the current graphics, which is always 96 for GcSkiaGraphics.

SKCanvas

Gets the underlying SkiaSharp.SKCanvas object.

SurfaceResolution

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

Transform

Gets or sets the transformation matrix of the current graphics.

Width

Gets the width of the image, in device-independent pixels (1/96 of an inch).

Methods

Name Description
ApplyLicenseKey(string)

Applies a license key to the current instance of GcSkiaGraphics.

Clear(Color)

Clears the drawing surface with the specified color.

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

GetBlendMode()

For internal use. Returns the current blend mode.

GetInterpolationMode()

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.

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.

IsBlendModeSupported(BlendMode)

Indicates whether this graphics implementation supports a specified blend mode.

GcSkiaGraphics supports all blend modes, so this method always returns true.

IsInterpolationModeSupported(InterpolationMode)

Indicates whether this graphics implementation supports a specified interpolation mode.

The following interpolation modes are supported by GcSkiaGraphics:

PopTransparencyLayer()

Stops redirecting drawing operations to the transparency layer that was created by the last PushTransparencyLayer(RectangleF?, float) call.

PushTransparencyLayer(RectangleF?, float)

Adds a transparency layer to the GcSkiaGraphics so that it receives all subsequent drawing operations until PopTransparencyLayer() is called.

SetBlendMode(BlendMode)

For internal use. Sets the current blend mode.

SetInterpolationMode(InterpolationMode)

For internal use.

SetLicenseKey(string)

Sets the license key.

ToGcBitmap(GcBitmap, Rectangle?)

Copies the image into an existing instance of GcBitmap.

ToGcBitmap(Rectangle?)

Creates an instance of the GcBitmap class from the current GcSkiaGraphics.

ToSkiaImage(Rectangle?)

Creates an instance of the GcSkiaImage class from the current GcSkiaGraphics.