Skip to content

lovaya/ImageSharp.Drawing

 
 

Repository files navigation

SixLabors.ImageSharp.Drawing
SixLabors.ImageSharp.Drawing

Build Status License: Apache 2.0 Code coverage Twitter OpenCollective OpenCollective

ImageSharp.Drawing provides extensions to ImageSharp containing a cross-platform 2D polygon manipulation API and drawing operations.

Designed to democratize image processing, ImageSharp.Drawing brings you an incredibly powerful yet beautifully simple API.

Built against .NET Standard 1.3, ImageSharp.Drawing can be used in device, cloud, and embedded/IoT scenarios.

Features Include:

  • Point in Polygon
  • Line Intersections
  • Complex Polygons
  • Simple polygon clipping
  • Regular Polygons (triangles, squares, pentagons etc, any number of sides)
  • Ellipses (and therfore circles)
  • Shape Builder api - for creating shapes declaratively
  • Polygons
    • With Linear line segments
    • With Beziear curve line segments
    • Mixture of both Linear & bezier segments
  • Paths
    • With Linear line segments
    • With Bezier curve line segments
    • Mixture of both Linear & bezier segments
  • Drawing
    • Brushes and various drawing algorithms, including drawing images
    • Various vector drawing methods for drawing paths, polygons etc.
    • Text drawing

License

Documentation

  • Detailed documentation for the ImageSharp.Drawing API is available. This includes additional conceptual documentation to help you get started.
  • Our Samples Repository is also available containing buildable code samples demonstrating common activities.

Questions?

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.

Installation

Install stable releases via Nuget; development releases are available via MyGet.

Package Name Release (NuGet) Nightly (MyGet)
SixLabors.ImageSharp.Drawing NuGet MyGet

Manual build

If you prefer, you can compile ImageSharp.Drawing yourself (please do and help!)

Alternatively, you can work from command line and/or with a lightweight editor on both Linux/Unix and Windows:

To clone ImageSharp.Drawing locally, click the "Clone in [YOUR_OS]" button above or run the following git commands:

git clone https://github.com/SixLabors/ImageSharp.Drawing

If working with Windows please ensure that you have enabled log file paths in git (run as Administrator).

git config --system core.longpaths true

Submodules

This repository contains git submodules. To add the submodules to the project, navigate to the repository root and type:

git submodule update --init --recursive

How can you help?

Please... Spread the word, contribute algorithms, submit performance improvements, unit tests, no input is too little. Make sure to read our Contribution Guide before opening a PR.

The ImageSharp Team

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

About

🖊️ Extensions to ImageSharp containing a cross-platform 2D polygon manipulation API and drawing operations.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.6%
  • PowerShell 0.4%