- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Brush Class
- BrushType Enumeration
- Charset Enumeration
- Font Class
- GdiGraphics Class
- GdiGraphics Members
- GdiGraphics Constructor
- GdiGraphics Methods
- {dtor} Method
- Clear Method
- Dispose Method
- DrawArc Method
- DrawBezier Method
- DrawBeziers Method
- DrawEllipse Method
- DrawFormattedText Method
- DrawImage Method
- DrawLine Method
- DrawLines Method
- DrawPie Method
- DrawPolygon Method
- DrawRectangle Method
- DrawString Method
- DrawText Method
- ExcludeClip Method
- FillEllipse Method
- FillPie Method
- FillPolygon Method
- FillRectangle Method
- FloodFill Method
- FromHdc Method
- FromHwnd Method
- GetHdc Method
- GetPixel Method
- IntersectClip Method
- Lock Method
- ResetClip Method
- SetClip Method
- SetPixel Method
- TranslateClip Method
- Unlock Method
- GdiGraphics Properties
- GdiGraphicsMode Enumeration
- HatchBrush Class
- HatchStyle Enumeration
- HorizontalAlignment Enumeration
- LineCap Enumeration
- Pen Class
- SolidBrush Class
- TextTrimmingMode Enumeration
- VerticalAlignment Enumeration
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
GdiGraphics.DrawBeziers Method (Pen, Point[])
Draws a sequence of connected Bezier splines.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Parameters
- pen
-
Type: Aurigma.GraphicsMill.Drawing.Pen
Pen object which is used to draw an spline.
- points
-
Type: System.Drawing.Point []
Array of coordinates of the splines start, end, and control points.
Remarks
A single Bezier spline is defined with four points: first and last point specify beginning and end of the curve, second and third points specify so-called control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier spline bends.
The end point of each spline is a start point for the next one. So the points array should have at least 4 points and + 3 points for each extra spline.
All the coordinates are measured in units specified with Unit property.
Examples
Dim bitmap As New Aurigma.GraphicsMill.Bitmap( _
Aurigma.GraphicsMill.RgbColor.White, 185, 145, _
Aurigma.GraphicsMill.PixelFormat.Format24bppRgb)
Dim graphics As Aurigma.GraphicsMill.Drawing.GdiGraphics = bitmap.GetGdiGraphics()
'Draw line
Dim pen As New Aurigma.GraphicsMill.Drawing.Pen(Aurigma.GraphicsMill.RgbColor.Red, 5)
graphics.DrawLine(pen, 10, 10, 100, 60)
'Draw polyline
pen.Color = Aurigma.GraphicsMill.RgbColor.FromArgb(150, 0, 255, 0)
pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash
pen.Width = 2
Dim points1 As System.Drawing.Point() = { _
New System.Drawing.Point(20, 30), New System.Drawing.Point(50, 2), _
New System.Drawing.Point(180, 30), New System.Drawing.Point(80, 140)}
graphics.DrawLines(pen, points1)
'Draw beizer
pen.Color = Aurigma.GraphicsMill.RgbColor.Blue
pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid
Dim points2 As System.Drawing.Point() = { _
New System.Drawing.Point(5, 5), New System.Drawing.Point(20, 150), _
New System.Drawing.Point(165, 80), New System.Drawing.Point(175, 10)}
graphics.DrawBeziers(pen, points2)
Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(
Aurigma.GraphicsMill.RgbColor.White, 185, 145,
Aurigma.GraphicsMill.PixelFormat.Format24bppRgb);
Aurigma.GraphicsMill.Drawing.GdiGraphics graphics = bitmap.GetGdiGraphics();
//Draw line
Aurigma.GraphicsMill.Drawing.Pen pen = new Aurigma.GraphicsMill.Drawing.Pen(
Aurigma.GraphicsMill.RgbColor.Red, 5);
graphics.DrawLine(pen, 10, 10, 100, 60);
//Draw polyline
pen.Color = Aurigma.GraphicsMill.RgbColor.FromArgb(150, 0, 255, 0);
pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
pen.Width = 2;
System.Drawing.Point[] points1 = {
new System.Drawing.Point(20, 30), new System.Drawing.Point(50, 2),
new System.Drawing.Point(180, 30), new System.Drawing.Point(80, 140)};
graphics.DrawLines(pen, points1);
//Draw beizer
pen.Color = Aurigma.GraphicsMill.RgbColor.Blue;
pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
System.Drawing.Point[] points2 = {
new System.Drawing.Point(5, 5), new System.Drawing.Point(20, 150),
new System.Drawing.Point(165, 80), new System.Drawing.Point(175, 10)};
graphics.DrawBeziers(pen, points2);