ViewCaptureWriter

public abstract class ViewCaptureWriter
Callback system used by SVG and PDF exporter to generate documents. Not intended for general SDK usage

Constructors

ViewCaptureWriter

#Since v6.0
public ViewCaptureWriter(double dpi, Size pageSize)
dpi (double)
pageSize (Size)

Properties

Dpi

#
protected double Dpi { get; }

PageSize

#
protected Size PageSize { get; }

Methods

Draw

#Since v6.15
public void Draw(nint constPtrPrintInfo, RhinoDoc doc)
constPtrPrintInfo (nint)
doc (RhinoDoc)

DrawBitmap

#
protected abstract void DrawBitmap(Bitmap bitmap, double m11, double m12, double m21, double m22, double dx, double dy)
bitmap (Bitmap)
m11 (double)
m12 (double)
m21 (double)
m22 (double)
dx (double)
dy (double)

DrawCircle

#
protected abstract void DrawCircle(PointF center, float diameter, Color fillColor, Pen stroke)
center (PointF)
diameter (float)
fillColor (Color)
stroke (ViewCaptureWriter.Pen)

DrawGradientHatch

#
protected abstract void DrawGradientHatch(DisplayPipeline pipeline, Hatch hatch, HatchPattern pattern, Color[] gradientColors, float[] gradientStops, Point3d gradientPoint1, Point3d gradientPoint2, bool linearGradient, Color boundaryColor, double pointScale, double effectiveHatchScale)
pipeline (DisplayPipeline)
hatch (Hatch)
pattern (HatchPattern)
gradientColors (Color[])
gradientStops (float[])
gradientPoint1 (Point3d)
gradientPoint2 (Point3d)
linearGradient (bool)
boundaryColor (Color)
pointScale (double)
effectiveHatchScale (double)

DrawPath

#
protected abstract void DrawPath(PathPoint[] points, Pen pen, bool linearGradient, ColorStop[] stops, Point2d[] gradientPoints, double pointScale)
points (ViewCaptureWriter.PathPoint[])
pen (ViewCaptureWriter.Pen)
linearGradient (bool)
stops (ColorStop[])
gradientPoints (Point2d[])
pointScale (double)

DrawRectangle

#
protected abstract void DrawRectangle(RectangleF rect, Color fillColor, float strokeWidth, Color strokeColor, float cornerRadius)
rect (RectangleF)
fillColor (Color)
strokeWidth (float)
strokeColor (Color)
cornerRadius (float)

DrawScreenText

#
protected abstract void DrawScreenText(string text, Color textColor, double x, double y, float angle, int horizontalAlignment, float heightPoints, Font font)
text (string)
textColor (Color)
x (double)
y (double)
angle (float)
horizontalAlignment (int)
heightPoints (float)
font (Font)

FillPolygon

#
protected abstract void FillPolygon(PointF[] points, Color fillColor)
points (PointF[])
fillColor (Color)

Flush

#
protected void Flush()

PopClipPath

#
protected void PopClipPath()

PushClipPath

#
protected void PushClipPath(PathPoint[] points)
points (ViewCaptureWriter.PathPoint[])

PushClipPath

#
protected void PushClipPath(RectangleF rect)
rect (RectangleF)

SetClipPath

#
protected abstract void SetClipPath(PathPoint[] points)
points (ViewCaptureWriter.PathPoint[])

SupportsArc

#
protected virtual bool SupportsArc()