Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
/SpiroNetPublic archive

The .NET C# port of libspiro - conversion between spiro control points and bezier's.

License

NotificationsYou must be signed in to change notification settings

wieslawsoltes/SpiroNet

Repository files navigation

Gitter

Build StatusCI

NuGetNuGetMyGet

The .NET C# port oflibspiro - conversion between spiro control points and bezier's

Introduction

For libspiro introduction please seelibspiro project page anddrawing with spiro. There is also GUI version using libspiro written in C#/WPF for Windows.

NuGet

SpiroNet is delivered as a NuGet package.

You can find the packages hereNuGet or by using nightly build feed:

  • Addhttps://www.myget.org/F/spironet-nightly/api/v2 to your package sources
  • Alternative nightly build feedhttps://pkgs.dev.azure.com/wieslawsoltes/GitHub/_packaging/Nightly/nuget/v3/index.json
  • Update your package usingSpiroNet feed

You can install the package like this:

Install-Package SpiroNet -Pre

Package Sources

Resources

Usage

Provided examples create geometric paths as output usingPath Markup Syntax for WPF/Silverlight andPath Data for SVG.

varpoints=newSpiroControlPoint[4];points[0].X=-100;points[0].Y=0;points[0].Type=SpiroPointType.G4;points[1].X=0;points[1].Y=100;points[1].Type=SpiroPointType.G4;points[2].X=100;points[2].Y=0;points[2].Type=SpiroPointType.G4;points[3].X=0;points[3].Y=-100;points[3].Type=SpiroPointType.G4;varbc=newPathBezierContext();varsuccess=Spiro.SpiroCPsToBezier0(points,4,true,bc);Console.WriteLine(bc);Console.WriteLine("Success: {0} ",success);
varpoints=newSpiroControlPoint[5];points[0].X=-100;points[0].Y=0;points[0].Type=SpiroPointType.G4;points[1].X=0;points[1].Y=100;points[1].Type=SpiroPointType.G4;points[2].X=100;points[2].Y=0;points[2].Type=SpiroPointType.G4;points[3].X=0;points[3].Y=-100;points[3].Type=SpiroPointType.G4;points[4].X=0;points[4].Y=0;points[4].Type=SpiroPointType.End;varbc=newPathBezierContext();varsuccess=Spiro.TaggedSpiroCPsToBezier0(points,bc);Console.WriteLine(bc);Console.WriteLine("Success: {0} ",success);
varpoints=newSpiroControlPoint[4];points[0].X=-100;points[0].Y=0;points[0].Type=SpiroPointType.OpenContour;points[1].X=0;points[1].Y=100;points[1].Type=SpiroPointType.G4;points[2].X=100;points[2].Y=0;points[2].Type=SpiroPointType.G4;points[3].X=0;points[3].Y=-100;points[3].Type=SpiroPointType.EndOpenContour;varbc=newPathBezierContext();varsuccess=Spiro.TaggedSpiroCPsToBezier0(points,bc);Console.WriteLine(bc);Console.WriteLine("Success: {0} ",success);

License

SpiroNet is licensed under theGPL-3.0 license.

Original license and patent grant is included inREADME by Raph Levien for ppedit.


[8]ページ先頭

©2009-2025 Movatter.jp