Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfGraphics Class
Properties Methods

In This Topic
    GcPdfGraphics Class Members
    In This Topic

    The following tables list the members exposed by GcPdfGraphics.

    Public Properties
     NameDescription
    Public PropertyGets the size of the drawing area.  
    Public PropertyGets a value indicating whether this instance of GrapeCity.Documents.Drawing.GcGraphics has been disposed and cannot be used anymore. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public PropertyGets the GcPdfDocument object owning this graphics.  
    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. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public PropertyGets or sets a GrapeCity.Documents.Text.FontCollection used by MeasureString and DrawString methods. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public PropertyOverridden. For internal use.  
    Public PropertyOverridden. For internal use. Gets a value indicating whether the graphics has a graphics format.  
    Public PropertyOverridden. Gets the resolution of the current graphics.  
    Public PropertyGets or sets the GrapeCity.Documents.Pdf.Graphics.SoftMaskBase object defining current Soft Mask.  
    Public PropertyGets the resolution of the underlying drawing surface (pixels per inch). (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public PropertyGets or sets an ITextLayoutHandler object which will receive notifications from the GcPdfGraphics when GrapeCity.Documents.Text.TextLayout is rendered.  
    Public PropertyOverridden. Gets or sets the current transformation matrix. The default is Identity matrix.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Begins Marked Content. Writes (BMC or BDC) operator to content stream, each call of BeginMarkedContent(String) should be enclosed with EndMarkedContent.  
    Public MethodOverloaded. Creates a clip region from a graphics path.

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

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodCreates a graphics path. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodCreates GrapeCity.Documents.Drawing.IPath object representing round border. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    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.

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodDisposes the current graphics. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws an ellipse using a specified line color, width and style.

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

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a GrapeCity.Documents.Pdf.Graphics.FormXObject using specified bounds and image alignment.

    The output parameter imageBounds receives the actual bounds of the drawn object(s).

     
    Public MethodOverridden. For internal use only.  
    Public MethodOverloaded. Draws an image using specified bounds, clipping and image alignment. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a line between two points, using a specified line color, width and style.

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

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a series of connected lines, using a specified line color, width and style.

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

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a path using a specified line color, width and style.

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

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    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 GrapeCity.Documents.Drawing.DashStyle.Solid, the polygon is drawn with a GrapeCity.Documents.Drawing.Pen having GrapeCity.Documents.Drawing.Pen.LineCap set to GrapeCity.Documents.Drawing.PenLineCap.Square instead of GrapeCity.Documents.Drawing.PenLineCap.Flat.

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a rectangle using a specified line color, width and style.

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

    (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a rounded border defined by four GrapeCity.Documents.Drawing.Pen objects and GrapeCity.Documents.Drawing.CornerRadius structure. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Draws a string using a specified GrapeCity.Documents.Text.TextFormat at a specified location. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodDraws a GrapeCity.Documents.Text.TextLayout at a specified location. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverridden. For internal use only.  
    Public MethodEnds Marked Content. Writes EMC operator to content stream.  
    Public MethodOverloaded. Fills an ellipse with a specified brush. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Fills a path using a specified brush. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Fills a polygon specified by an array of points, using a specified color and fill mode. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Fills a rectangle using a specified brush. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Fills a rounded rectangle using a specified brush. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodReturns the size of an image in pixels using the resolution of the current graphics. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodMeasures how an image will be drawn using the specified bounds and image alignment. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    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. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    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. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodRemoves the last clip. After this method is called, the clip is no longer applied to subsequent drawing operations. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Public MethodOverloaded. Specifies a rectangle to which all subsequent drawing operations are clipped. Clipping is applied only if containerRect does not contain clipRect.

    The GrapeCity.Documents.Drawing.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. (Inherited from GrapeCity.Documents.Drawing.GcGraphics)
    Top
    See Also