Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class
Properties Methods

In This Topic
    GcGraphics Class Members
    In This Topic

    The following tables list the members exposed by GcGraphics.

    Public Properties
     NameDescription
    Public PropertyGets or sets the current blend mode.  
    Public PropertyGets a value indicating whether this instance of GcGraphics has been disposed and cannot be used anymore.  
    Public PropertyGets or sets a value indicating if strings and GrapeCity.Documents.Text.TextLayout objects are rendered using the graphic primitives instead of the specialized text drawing services.  
    Public PropertyGets or sets a GrapeCity.Documents.Text.FontCollection used by MeasureString and DrawString methods.  
    Public PropertyGets or sets the sampling mode to use when drawing images with resizing.  
    Public PropertyGets or sets the resolution of the current graphics (pixels per inch).  
    Public PropertyGets the resolution of the underlying drawing surface (pixels per inch).  
    Public PropertyGets or sets the transformation matrix of the current graphics.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Creates a clip region from a graphics path.

    Use PushClip(IClipRegion) and PopClip to set/remove clipping.

     
    Public MethodCreates a graphics path.  
    Public MethodCreates IPath object representing round border.  
    Public MethodCreates an instance of GrapeCity.Documents.Text.TextLayout with the same resolution as that of the current graphics.

    This is the recommended way to create a TextLayout to use with a graphics.

     
    Public MethodReleases all resources used by the current GcGraphics.  
    Public MethodOverloaded. Draws an ellipse using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the ellipse is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

     
    Public MethodOverloaded. Draws an image using specified bounds, clipping and image alignment.  
    Public MethodOverloaded. Draws a line between two points, using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the line is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

     
    Public MethodOverloaded. Draws a series of connected lines, using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the lines are drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

     
    Public MethodOverloaded. Draws a path using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the path is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

     
    Public MethodOverloaded. Draws a polygon specified by an array of points, using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the polygon is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

     
    Public MethodOverloaded. Draws a rectangle using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the rectangle is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

     
    Public MethodOverloaded. Draws a rounded border defined by four Pen objects and CornerRadius structure.  
    Public MethodOverloaded. Draws a string using a specified GrapeCity.Documents.Text.TextFormat at a specified location.  
    Public MethodOverloaded. Draws a specified SVG document at a point specifying the position of the SVG viewport.

    To specify the position of the SVG content rather than viewport, see DrawSvgContent(GcSvgDocument,PointF,Single).

     
    Public MethodOverloaded. Draws the content of a specified SVG document at a point specifying the top-left corner of the SVG content.

    To specify the position of the SVG viewport rather than content, see DrawSvg(GcSvgDocument,PointF,Single).

     
    Public MethodDraws a GrapeCity.Documents.Text.TextLayout at a specified location.

    If any part of the text does not fit in the layout bounds, it is truncated.

     
    Public MethodOverloaded. Fills an ellipse with a specified brush.  
    Public MethodOverloaded. Fills a path using a specified brush.  
    Public MethodOverloaded. Fills a polygon specified by an array of points, using a specified color and fill mode.  
    Public MethodOverloaded. Fills a rectangle using a specified brush.  
    Public MethodOverloaded. Fills a rounded rectangle using a specified brush.  
    Public MethodReturns the size of an image in pixels using the resolution of the current graphics.  
    Public MethodIndicates whether this graphics implementation supports a specified blend mode.  
    Public MethodIndicates whether this graphics implementation supports a specified interpolation mode.  
    Public MethodMeasures how an image will be drawn using the specified bounds and image alignment.  
    Public MethodOverloaded. Measures a string using a specified GrapeCity.Documents.Text.TextFormat, available layout size and GrapeCity.Documents.Text.TextSplitOptions. Also calculates and returns in an output parameter the number of chars that fit into the specified size.  
    Public MethodOverloaded. Measures a string using a specified font, font size and layout width, taking into account the trailing whitespace at the end of each line.  
    Public MethodCalculates the content bounds of a specified SVG document when its viewport is drawn at a specified point.  
    Public MethodRemoves the last clip. After this method is called, the clip is no longer applied to subsequent drawing operations.  
    Public MethodStops redirecting drawing operations to the transparency layer that was created by the last PushTransparencyLayer call.  
    Public MethodOverloaded. Specifies a rectangle to which all subsequent drawing operations are clipped. Clipping is applied only if containerRect does not contain clipRect.

    The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:

    using (g.PushClip(...)) ... in which case the clipping region will be removed when the returned object is disposed.  
    Public MethodAdds a transparency layer to the current graphics. That layer receives all subsequent drawing operations until PopTransparencyLayer is called.  
    Top
    See Also