• Overview
  • How it works
  • Documentation
  • Blog
  • Forum
Search Results for

    Show / Hide Table of Contents

    DrawingContext Class

    Definition

    Namespace: Alternet.Drawing
    Assembly: Alternet.UI.dll

    Describes a drawing surface.

    Inheritance
    System.Object
    BaseObject
    DisposableObject
    DrawingContext
    Implements
    IDisposableObject
    System.IDisposable
    Syntax
    public class DrawingContext : DisposableObject, IDisposableObject, IDisposable

    Properties

    Clip

    Gets or sets a Region that limits the drawing region of this DrawingContext.

    InterpolationMode

    Gets or sets the interpolation mode associated with this DrawingContext.

    Transform

    Gets or sets a copy of the geometric world transformation for this DrawingContext.

    Methods

    DisposeManagedResources()
    DrawArc(Pen, Point, Double, Double, Double)

    Draws an arc representing a portion of a circle specified by a center Point and a radius.

    DrawBezier(Pen, Point, Point, Point, Point)

    Draws a Bézier spline defined by four Point structures.

    DrawBeziers(Pen, Point[])

    Draws a series of Bézier splines from an array of Point structures.

    DrawCircle(Pen, Point, Double)

    Draws an circle specified by a center Point and a radius.

    DrawDebugPoints(Rect, Pen)

    Draws debug points on the corners of the specified rectangle.

    DrawEllipse(Pen, Rect)

    Draws an ellipse defined by a bounding Rect.

    DrawImage(Image, Point)

    Draws the specified Image, using its original size, at the specified location.

    DrawImage(Image, Rect)

    Draws an image into the region defined by the specified Rect.

    DrawImage(Image, Rect, Rect)

    Draws the specified portion of the image into the region defined by the specified Rect.

    DrawLine(Pen, Point, Point)

    Draws a line connecting two Point structures.

    DrawLines(Pen, Point[])

    Draws a series of line segments that connect an array of Point structures.

    DrawPath(Pen, GraphicsPath)

    Draws a GraphicsPath.

    DrawPie(Pen, Point, Double, Double, Double)

    Draws an outline of a pie section defined by a circle specified by a center Point and a radius.

    DrawPoint(Pen, Double, Double)

    Draws point with the specified color.

    DrawPolygon(Pen, Point[])

    Draws a polygon defined by an array of Point structures.

    DrawRectangle(Pen, Rect)

    Draws a rectangle specified by a Rect structure.

    DrawRectangles(Pen, Rect[])

    Draws a series of rectangles specified by Rect structures.

    DrawRoundedRectangle(Pen, Rect, Double)

    Draws a rounded rectangle specified by a Rect and a corner radius.

    DrawText(String, Font, Brush, Point)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    DrawText(String, Font, Brush, Point, TextFormat)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    DrawText(String, Font, Brush, Rect)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    DrawText(String, Font, Brush, Rect, TextFormat)

    Draws the specified text string at the specified location with the specified Brush and Font objects.

    FillCircle(Brush, Point, Double)

    Fills the interior of a circle specified by a center Point and a radius.

    FillEllipse(Brush, Rect)

    Fills the interior of an ellipse defined by a bounding rectangle specified by a Rect structure.

    FillPath(Brush, GraphicsPath)

    Fills the interior of a GraphicsPath.

    FillPie(Brush, Point, Double, Double, Double)

    Fills the interior of a pie section defined by a circle specified by a center Point and a radius.

    FillPolygon(Brush, Point[], FillMode)

    Fills the interior of a polygon defined by an array of Point structures.

    FillRectangle(Brush, Rect)

    Fills the interior of a rectangle specified by a Rect structure.

    FillRectangles(Brush, Rect[])

    Fills a series of rectangles specified by Rect structures.

    FillRoundedRectangle(Brush, Rect, Double)

    Fills the interior of a rounded rectangle specified by a Rect and a corner radius.

    FloodFill(Brush, Point)

    Flood fills the drawing surface starting from the given point, using the given brush.

    FromImage(Image)

    Creates a new DrawingContext from the specified Image.

    MeasureText(String, Font)

    Measures the specified string when drawn with the specified Font.

    MeasureText(String, Font, Double)

    Measures the specified string when drawn with the specified Font and maximum width.

    MeasureText(String, Font, Double, TextFormat)

    Measures the specified string when drawn with the specified Font, maximum width and TextFormat.

    Pop()

    Pops a stored state from the stack and sets the current transformation matrix to that state.

    Push()

    Pushes the current state of the DrawingContext transformation matrix on a stack.

    PushTransform(TransformMatrix)

    Pushes the current state of the DrawingContext transformation matrix on a stack and concatenates the current transform with a new transform.

    Inherited Members
    DisposableObject.Disposed
    DisposableObject.IsDisposed
    DisposableObject.Handle
    DisposableObject.DisposeHandle
    DisposableObject.Dispose()
    DisposableObject.CheckDisposed()
    DisposableObject.Dispose(Boolean)
    DisposableObject.DisposeUnmanagedResources()
    BaseObject.Required()
    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()

    Implements

    IDisposableObject
    System.IDisposable
    In This Article
    Back to top Documentation Licensing Info Copyright AlterNET Software