GraphicsPath.AddCurve メソッド (Point[], Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As GraphicsPath Dim points As Point() Dim tension As Single instance.AddCurve(points, tension)



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddCurve メソッド (Point[])
アセンブリ: System.Drawing (system.drawing.dll 内)




Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddCurve メソッド (PointF[], Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As GraphicsPath Dim points As PointF() Dim tension As Single instance.AddCurve(points, tension)



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddCurve メソッド (PointF[], Int32, Int32, Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Public Sub AddCurve ( _ points As PointF(), _ offset As Integer, _ numberOfSegments As Integer, _ tension As Single _ )
Dim instance As GraphicsPath Dim points As PointF() Dim offset As Integer Dim numberOfSegments As Integer Dim tension As Single instance.AddCurve(points, offset, numberOfSegments, tension)
public function AddCurve ( points : PointF[], offset : int, numberOfSegments : int, tension : float )

必要に応じて、元の点を維持する必要があります。元の点は内部で 3 次ベジエ制御点に変換されるため、元の点を返す機構はありません。
曲線は、offset で指定された配列の点から始まり、numberOfSegments で指定された数の点 (セグメント) を含みます。


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddCurve メソッド (PointF[])
アセンブリ: System.Drawing (system.drawing.dll 内)




Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddCurve メソッド (Point[], Int32, Int32, Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Public Sub AddCurve ( _ points As Point(), _ offset As Integer, _ numberOfSegments As Integer, _ tension As Single _ )
Dim instance As GraphicsPath Dim points As Point() Dim offset As Integer Dim numberOfSegments As Integer Dim tension As Single instance.AddCurve(points, offset, numberOfSegments, tension)
public function AddCurve ( points : Point[], offset : int, numberOfSegments : int, tension : float )

必要に応じて、元の点を維持する必要があります。元の点は内部で 3 次ベジエ制御点に変換されるため、元の点を返す機構はありません。
曲線は、offset パラメータで指定された配列の点から始まり、numberOfSegments で指定された数の点 (セグメント) を含みます。

次のコード例は、Windows フォームでの使用を意図してデザインされており、OnPaint イベント オブジェクトである PaintEventArgse が必要です。このコードは次のアクションを実行します。
配列には 4 点が格納されていますが、3 つのセグメントしかありません。これは、AddCurve の呼び出しの 3 番目の引数で指定された数です。
Public Sub AddCurveExample(ByVal e As PaintEventArgs) ' Create some points. Dim point1 As New Point(20, 20) Dim point2 As New Point(40, 0) Dim point3 As New Point(60, 40) Dim point4 As New Point(80, 20) ' Create an array of the points. Dim curvePoints As Point() = {point1, point2, point3, point4} ' Create a GraphicsPath object and add a curve. Dim myPath As New GraphicsPath myPath.AddCurve(curvePoints, 0, 3, 0.8F) ' Draw the path to the screen. Dim myPen As New Pen(Color.Black, 2) e.Graphics.DrawPath(myPen, myPath) End Sub
private void AddCurveExample(PaintEventArgs e) { // Create some points. Point point1 = new Point(20, 20); Point point2 = new Point(40, 0); Point point3 = new Point(60, 40); Point point4 = new Point(80, 20); // Create an array of the points. Point[] curvePoints = {point1, point2, point3, point4}; // Create a GraphicsPath object and add a curve. GraphicsPath myPath = new GraphicsPath(); myPath.AddCurve(curvePoints, 0, 3, 0.8f); // Draw the path to the screen. Pen myPen = new Pen(Color.Black, 2); e.Graphics.DrawPath(myPen, myPath); }
private: void AddCurveExample( PaintEventArgs^ e ) { // Create some points. Point point1 = Point(20,20); Point point2 = Point(40,0); Point point3 = Point(60,40); Point point4 = Point(80,20); // Create an array of the points. array<Point>^ curvePoints = {point1,point2,point3,point4}; // Create a GraphicsPath object and add a curve. GraphicsPath^ myPath = gcnew GraphicsPath; myPath->AddCurve( curvePoints, 0, 3, 0.8f ); // Draw the path to the screen. Pen^ myPen = gcnew Pen( Color::Black,2.0f ); e->Graphics->DrawPath( myPen, myPath ); }
private void AddCurveExample(PaintEventArgs e) { // Create some points. Point point1 = new Point(20, 20); Point point2 = new Point(40, 0); Point point3 = new Point(60, 40); Point point4 = new Point(80, 20); // Create an array of the points. Point curvePoints[] = { point1, point2, point3, point4 }; // Create a GraphicsPath object and add a curve. GraphicsPath myPath = new GraphicsPath(); myPath.AddCurve(curvePoints, 0, 3, 0.8F); // Draw the path to the screen. Pen myPen = new Pen(Color.get_Black(), 2); e.get_Graphics().DrawPath(myPen, myPath); } //AddCurveExample

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddCurve メソッド

名前 | 説明 |
---|---|
GraphicsPath.AddCurve (Point[]) | 現在の図形にスプライン曲線を追加します。曲線は配列内の各点を結ぶため、カーディナル スプライン曲線を使用します。 |
GraphicsPath.AddCurve (PointF[]) | 現在の図形にスプライン曲線を追加します。曲線は配列内の各点を結ぶため、カーディナル スプライン曲線を使用します。 |
GraphicsPath.AddCurve (Point[], Single) | 現在の図形にスプライン曲線を追加します。 |
GraphicsPath.AddCurve (PointF[], Single) | 現在の図形にスプライン曲線を追加します。 |
GraphicsPath.AddCurve (Point[], Int32, Int32, Single) | 現在の図形にスプライン曲線を追加します。 |
GraphicsPath.AddCurve (PointF[], Int32, Int32, Single) | 現在の図形にスプライン曲線を追加します。 |

Weblioに収録されているすべての辞書からGraphicsPath.AddCurveを検索する場合は、下記のリンクをクリックしてください。

- GraphicsPath.AddCurveのページへのリンク