Hardware and Software 2D Rendering Library
-
Hardware Rendering Technology:
1.1 OpenGL ES 2.0 + AA Shader: This based on OpenGL ES2 and Its Shading Langauge (GLSL).
-
Software Rendering Technology:
2.1 Agg-Sharp
Agg-Sharp is the C# port of Anti-Grain Geometry (AGG) version (version 2.4, BSD license)
This provides 'classic' (pure) software based rendering technology.
Big thanks go to https://github.com/MatterHackers/agg-sharp
2.3 GDI+ , System.Drawing: as usual :)
-
PixelFarm's Typography : Agg's Subpixel Rendering
pic 1: HtmlRenderer on GLES2 surface, text are renderered with the Typography, please note the text selection on the Html Surface.
(HtmlRender => https://github.com/LayoutFarm/HtmlRenderer,
Typography => https://github.com/LayoutFarm/Typography)
(https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg)
pic 1: PixelFarm's Agg (1) vs Chrome (2)
pic 2: Agg's result, bitmap zoom-in to see fine details
HOW TO BUILD
see PaintLab#37
License:
The project is based on multiple open-sourced projects (listed below) all using permissive licenses.
A license for a whole project is MIT.
but if you use some part of the code please check each source file's header for the licensing info.
Geometry
BSD, 2002-2005, Maxim Shemanarev, Anti-Grain Geometry - Version 2.4, http://www.antigrain.com
BSD, 2007-2014, Lars Brubaker, agg-sharp, https://github.com/MatterHackers/agg-sharp
ZLIB, 2015, burningmine, CurveUtils. https://github.com/burningmime/curves
Boost, 2010-2014, Angus Johnson, Clipper.
BSD, 2009-2010, Poly2Tri Contributors, https://github.com/PaintLab/poly2tri-cs
SGI, 2000, Eric Veach, Tesselate.
MS-PL, 2018, SVG.NET, https://github.com/vvvv/SVG
MIT, 2018, Rohaan Hamid, https://github.com/rohaanhamid/simplify-csharp
Image Processing
MIT, 2008, dotPDN LLC, Rick Brewster, Chris Crosetto, Tom Jackson, Michael Kelsey, Brandon Ortiz, Craig Taylor, Chris Trevino, and Luke Walker., OpenPDN v 3.36.7 (Paint.NET), https://github.com/rivy/OpenPDN
BSD, 2002-2005, Maxim Shemanarev, Anti-Grain Geometry - Version 2.4, http://www.antigrain.com
MIT, 2009-2015, Bill Reiss, Rene Schulte and WriteableBitmapEx Contributors, https://github.com/teichgraf/WriteableBitmapEx
Apache2, 2012, Hernán J. González, https://github.com/leonbloy/pngcs
Apache2, 2010, Sebastian Stehle, .NET Image Tools Development Group. , https://imagetools.codeplex.com/
Font
Apache2, 2016-2017, WinterDev, Samuel Carlsson, Sam Hocevar and others, https://github.com/LayoutFarm/Typography
Apache2, 2014-2016, Samuel Carlsson, https://github.com/vidstige/NRasterizer
MIT, 2015, Michael Popoloski, https://github.com/MikePopoloski/SharpFont
The FreeType Project LICENSE (3-clauses BSD style),2003-2016, David Turner, Robert Wilhelm, and Werner Lemberg and others, https://www.freetype.org/
MIT, 2016, Viktor Chlumsky, https://github.com/Chlumsky/msdfgen
Platforms
MIT, 2015-2015, Xamarin, Inc., https://github.com/mono/SkiaSharp
MIT, 2006-2009, Stefanos Apostolopoulos and other Open Tool Kit Contributors, https://github.com/opentk/opentk
MIT, 2013, Antonie Blom, https://github.com/andykorth/Pencil.Gaming
Demo
MIT, 2017, Wiesław Šoltés, ColorBlender, https://github.com/wieslawsoltes/ColorBlender
BSD, 2015, Darren David darren-code@lookorfeel.com, https://github.com/nobutaka/EasingCurvePresets