menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PostScriptGraphics - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PostScriptGraphics

    Provides methods to draw the primitives of the PostScriptImage.

    Inheritance
    System.Object
    PostScriptGraphics
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart.PostScript
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public sealed class PostScriptGraphics

    Constructors

    PostScriptGraphics(TextWriter, PostScriptImage)

    Initializes a new instance of the PostScriptGraphics class.

    Declaration
    public PostScriptGraphics(TextWriter textWriter, PostScriptImage image)
    Parameters
    Type Name Description
    System.IO.TextWriter textWriter

    The System.IO.TextWriter.

    PostScriptImage image

    The PostScriptImage.

    Methods

    BeginContainer()

    Saves the correct states.

    Declaration
    public void BeginContainer()

    Clear(Color)

    Clears the image by the specified color.

    Declaration
    public void Clear(Color color)
    Parameters
    Type Name Description
    System.Drawing.Color color

    The color.

    ConcatTransform(Matrix)

    Concats the transform.

    Declaration
    public void ConcatTransform(Matrix m)
    Parameters
    Type Name Description
    System.Drawing.Drawing2D.Matrix m

    The m.

    DrawBezier(Pen, Single, Single, Single, Single, Single, Single, Single, Single)

    Draws the bezier curve.

    Declaration
    public void DrawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Single x1

    The x1.

    System.Single y1

    The y1.

    System.Single x2

    The x2.

    System.Single y2

    The y2.

    System.Single x3

    The x3.

    System.Single y3

    The y3.

    System.Single x4

    The x4.

    System.Single y4

    The y4.

    DrawLine(Pen, Single, Single, Single, Single)

    Draws the line.

    Declaration
    public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Single x1

    The x1.

    System.Single y1

    The y1.

    System.Single x2

    The x2.

    System.Single y2

    The y2.

    DrawPath(Pen, GraphicsPath)

    Draws the System.Drawing.Drawing2D.GraphicsPath.

    Declaration
    public void DrawPath(Pen pen, GraphicsPath path)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Drawing.Drawing2D.GraphicsPath path

    The path.

    DrawPolygon(Pen, PointF[])

    Draws the polygon.

    Declaration
    public void DrawPolygon(Pen pen, PointF[] path)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Drawing.PointF[] path

    The path.

    DrawRectangle(Pen, Rectangle)

    Draws the rectangle.

    Declaration
    public void DrawRectangle(Pen pen, Rectangle rect)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Drawing.Rectangle rect

    The rect.

    DrawRectangle(Pen, Single, Single, Single, Single)

    Draws the rectangle.

    Declaration
    public void DrawRectangle(Pen pen, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    DrawString(String, Font, Brush, Single, Single, Single, Single, StringFormat, Boolean)

    Draws the string.

    Declaration
    public void DrawString(string s, Font font, Brush brush, float x, float y, float width, float height, StringFormat stringformat, bool editableText)
    Parameters
    Type Name Description
    System.String s

    The s.

    System.Drawing.Font font

    The font.

    System.Drawing.Brush brush

    The brush.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width
    System.Single height
    System.Drawing.StringFormat stringformat
    System.Boolean editableText

    EndContainer()

    Reverts the saved states.

    Declaration
    public void EndContainer()

    FillPath(Brush, GraphicsPath)

    Fills the System.Drawing.Drawing2D.GraphicsPath.

    Declaration
    public void FillPath(Brush brush, GraphicsPath path)
    Parameters
    Type Name Description
    System.Drawing.Brush brush

    The brush.

    System.Drawing.Drawing2D.GraphicsPath path

    The path.

    FillPolygon(Brush, PointF[])

    Fills the polygon.

    Declaration
    public void FillPolygon(Brush brush, PointF[] path)
    Parameters
    Type Name Description
    System.Drawing.Brush brush

    The brush.

    System.Drawing.PointF[] path

    The path.

    FillRectangle(Brush, Rectangle)

    Fills the rectangle.

    Declaration
    public void FillRectangle(Brush brush, Rectangle rect)
    Parameters
    Type Name Description
    System.Drawing.Brush brush

    The brush.

    System.Drawing.Rectangle rect

    The rect.

    FillRectangle(Brush, RectangleF)

    Fills the rectangle.

    Declaration
    public void FillRectangle(Brush brush, RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.Brush brush

    The brush.

    System.Drawing.RectangleF rect

    The rect.

    FillRectangle(Brush, Single, Single, Single, Single)

    Fills the rectangle.

    Declaration
    public void FillRectangle(Brush brush, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Brush brush

    The brush.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    IntersectClip(RectangleF)

    Intersects the clip.

    Declaration
    public void IntersectClip(RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect

    The rect.

    ResetClip()

    Resets the clip.

    Declaration
    public void ResetClip()

    RotateTransform(Single)

    Rotate the transform.

    Declaration
    public void RotateTransform(float dx)
    Parameters
    Type Name Description
    System.Single dx

    The dx.

    Save(String)

    Saves the image to file by the specified name.

    Declaration
    public void Save(string name)
    Parameters
    Type Name Description
    System.String name

    The name.

    SetClip(RectangleF)

    Sets the clip.

    Declaration
    public void SetClip(RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect

    The rect.

    SetTransform(Matrix)

    Sets the transform.

    Declaration
    public void SetTransform(Matrix m)
    Parameters
    Type Name Description
    System.Drawing.Drawing2D.Matrix m

    The System.Drawing.Drawing2D.Matrix.

    TranslateTransform(Single, Single)

    Translates the transform.

    Declaration
    public void TranslateTransform(float dx, float dy)
    Parameters
    Type Name Description
    System.Single dx

    The dx.

    System.Single dy

    The dy.

    TranslateTransform(Single, Single, MatrixOrder)

    Translates the transform.

    Declaration
    public void TranslateTransform(float dx, float dy, MatrixOrder order)
    Parameters
    Type Name Description
    System.Single dx

    The dx.

    System.Single dy

    The dy.

    System.Drawing.Drawing2D.MatrixOrder order

    The order.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved