[]
        
(Showing Draft Content)

C1.Util.GraphicsRendering

GraphicsRendering Class

Represents graphics rendering interface.

Inheritance
GraphicsRendering
Implements
Namespace: C1.Util
Assembly: C1.Excel.dll
Syntax
public class GraphicsRendering : IRendering, IDisposable

Constructors

Name Description
GraphicsRendering(GcGraphics)

Support graphics rendering interface.

Properties

Name Description
ClipRect

Gets clipping area as rectangle bounds.

Graphics

Gets initial graphics.

Pen

Gets or sets current pen of this graphics.

TextFormat

Gets or sets current text format of this graphics.

Transform

Gets transfoming matrix.

Methods

Name Description
ArcToBezier(PointF, PointF, SizeF, double, bool)

Convert an arc to Bezier curves.

CreateGraphics(GcBitmap, Color?)

Create graphics for bitmap.

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.

DrawString(string, RectangleF, TextAlignType, TextAlignType)

Draw string at specified area with word wrap.

GetTextFormat(XLFont)

Gets TextFormat object by XLFont object.

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.