[]
        
(Showing Draft Content)

C1.Util.SvgRendering

SvgRendering Class

Represents graphics rendering interface.

Inheritance
SvgRendering
Namespace: C1.Util
Assembly: C1.Excel.dll
Syntax
public class SvgRendering : ISvgRendering, IFlowRendering, IRendering, IDisposable

Constructors

Name Description
SvgRendering(float, float, XmlWriter)

Support SVG rendering interface.

Properties

Name Description
Baseline

Gets the current font baseline.

ClipRect

Gets clipping area as rectangle bounds.

Document

Gets width of the paper.

Font

Gets or sets current text format of this graphics.

Height

Gets height of the paper.

OffsetX

Gets or sets the X offset coordinate (horizontal).

OffsetY

Gets or sets the Y offset coordinate (vertical).

Pen

Gets or sets current pen of this graphics.

PreciseText

Gets or sets a flag for more precise text measurement.

Transform

Gets transfoming matrix.

Width

Gets width of the paper.

Methods

Name Description
ArcToBezier(double, double, double, double, double, double)

Convert an arc to Bezier curves.

Dispose()
DrawArc(double, double, double, double, double, double)

Draw arc (ellipse segment) with current stroke attributes.

DrawDonutSegment(double, double, double, double, double, double, double, double)

Draw donut segment with current stroke and fill.

DrawEllipse(double, double, double, double)

Draw ellipse with current stroke and fill.

DrawImage(Image, RectangleF)

Draw image/bitmap with content alignment.

DrawImage(Image, RectangleF, RectangleF)

Draw image/bitmap with content alignment.

DrawImage(object, double, double, double, double)

Draw image using special source.

DrawLine(double, double, double, double)

Draw line between two points using current stroke attributes.

DrawLines(double[], double[])

Draw lines using specified coordinates.

DrawPath(double[], double[], byte[], bool)

Draws a path defined by points and types and fill.

DrawPieSegment(double, double, double, double, double, double)

Draw pie segment with current stroke and fill.

DrawPolygon(double[], double[])

Draw polygon with current stroke and fill.

DrawRect(double, double, double, double)

Draw rectangle with current stroke and fill.

DrawRoundRect(double, double, double, double, double, double)

Draw round rectangle with current stroke and fill.

DrawString(string, double, double)

Draw string at specified position.

DrawString(string, double, double, double, double, byte, byte)

Draw string at specified area with word wrap.

DrawString(string, RectangleF, TextAlignType, TextAlignType)

Draw string at specified area with word wrap.

End()

End generate this SVG.

IsVerticalCJK(char)

Is vertical CJK (Chinese, Japanese, and Korean) of the character.

IsVerticalCJK(string)

Is vertical CJK (Chinese, Japanese, and Korean) of the text string.

MeasureString(string, double)

Measures size of string in layout area.

PopClip()

Pop the clip rectangle.

PopTransform()

Pop the transform matrix for drawing.

PushClipPath(double[], double[], byte[])

Push the clip path defined by points and types.

PushClipRect(double, double, double, double)

Push the clip rectangle.

PushClipRect(RectangleF)

Push the clip rectangle in pixels.

PushTransform(object)

Push the transform matrix for drawing.

SetFill(object)

Sets the fill brush.

SetFont(object)

Sets the font.

SetStroke(object)

Sets the current stroke brush.

SetStrokePattern(double[])

Sets the stroke pattern.

SetStrokeThickness(double)

Sets the stroke thickness.

ToBase64(Image)

Convert a image to the BASE64 text string.

ToBlackWhiteImage(Image)

Convert image to black and white image.

ToBytes()

Generates a SVG binary code.

ToContext()

Generates a SVG text context code, that inside svg tag.

ToGrayscaleImage(Image)

Convert image to black and white image.

ToImage(IImage)

Convert a image interface to the image in memory.

ToImage(Image)

Convert a image to the image in memory.

ToImage(GcBitmap)

Convert a bitmap object to the image in memory.

ToImage(byte[])

Convert a image data to the image in memory.

ToImage(Stream)

Read a stream to the image in memory.

ToImage(object)

Convert a bitmap object to the image in memory.

ToImage(string)

Convert a bitmap object to the image in memory.

ToPixels(double)

Gets converted value (points to pixels)

ToPoints(double)

Gets converted value (pixels to points)

ToText()

Generates a SVG text code.