{"id":24661,"date":"2016-02-22T15:53:20","date_gmt":"2016-02-22T23:53:20","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=24661"},"modified":"2016-02-22T15:53:20","modified_gmt":"2016-02-22T23:53:20","slug":"cross-platform-2d-graphics-with-skiasharp","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/cross-platform-2d-graphics-with-skiasharp\/","title":{"rendered":"Cross-Platform 2D Graphics with SkiaSharp"},"content":{"rendered":"<p>\t\t\t\tToday we&#8217;re launching <a href=\"https:\/\/developer.xamarin.com\/guides\/cross-platform\/drawing\/\">SkiaSharp<\/a>, a cross-platform, high-performance 2D API for .NET developers available across mobile, desktops, and servers.<\/p>\n<p>SkiaSharp provides a powerful C# API for doing 2D graphics powered by <a href=\"http:\/\/skia.org\">Google\u2019s Skia library<\/a>, the same library that powers Google Chrome, Firefox, and Android\u2019s graphic stacks.<\/p>\n<p>SkiaSharp ships conveniently as a <a href=\"https:\/\/www.nuget.org\/packages\/SkiaSharp\">cross-platform NuGet package<\/a>, and supports the following platforms out of the box: MacOS X, Android and iOS with Mono, and the Windows Desktop with .NET. As NuGet evolves, we&#8217;ll offer this for .NET Core and assorted Linux distributions (In the meantime, if you need it now, you can build <a href=\"http:\/\/github.com\/mono\/SkiaSharp\">SkiaSharp<\/a> yourself).<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-24688\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/IDE-1024x475.png\" alt=\"SkiaSharp - a cross platform 2D graphics library.\" width=\"1024\" height=\"475\" \/><\/p>\n<h2>Getting Started<\/h2>\n<p>First, install the SkiaSharp NuGet and then check out our <a href=\"https:\/\/developer.xamarin.com\/guides\/cross-platform\/drawing\/\">Introduction<\/a>.<\/p>\n<p>To help you start writing drawing code today, take a look at the landing page for <a href=\"https:\/\/github.com\/mono\/SkiaSharp\">SkiaSharp<\/a>.<\/p>\n<h2>Why We Chose Skia<\/h2>\n<p>While Mono has supported <code>System.Drawing<\/code> for a while, and we built a <a href=\"https:\/\/github.com\/mono\/sysdrawing-coregraphics\">CoreGraphics-powered<\/a> version for Mac\/iOS, it has never been a pixel-perfect match for the original .NET implementation of <code>System.Drawing<\/code>. Mono.Cairo is also generally available, but has some limitations that are difficult to work around.<\/p>\n<p>Skia gives us the same graphics output across all platforms, is actively maintained, and offers great features not found elsewhere, like filters and hardware accelerated graphics.<\/p>\n<h2>The Future<\/h2>\n<p>SkiaSharp is a work in progress that we&#8217;re sharing with our community. While we have bound important parts of the Skia API, much work remains to be done. We&#8217;re using the stable C API surfaced by Skia, and our plan is to continue contributing our work to the C bindings of Skia to provide full coverage to the APIs.<\/p>\n<p>To help us guide our binding efforts, please leave comments or suggestions as issues on the GitHub repository:<\/p>\n<p><a href=\"http:\/\/github.com\/mono\/SkiaSharp\">http:\/\/github.com\/mono\/SkiaSharp<\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#8217;re launching SkiaSharp, a cross-platform, high-performance 2D API for .NET developers available across mobile, desktops, and servers. SkiaSharp provides a powerful C# API for doing 2D graphics powered by Google\u2019s Skia library, the same library that powers Google Chrome, Firefox, and Android\u2019s graphic stacks. SkiaSharp ships conveniently as a cross-platform NuGet package, and supports [&hellip;]<\/p>\n","protected":false},"author":1917,"featured_media":39167,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[4],"class_list":["post-24661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>Today we&#8217;re launching SkiaSharp, a cross-platform, high-performance 2D API for .NET developers available across mobile, desktops, and servers. SkiaSharp provides a powerful C# API for doing 2D graphics powered by Google\u2019s Skia library, the same library that powers Google Chrome, Firefox, and Android\u2019s graphic stacks. SkiaSharp ships conveniently as a cross-platform NuGet package, and supports [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/24661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/1917"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=24661"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/24661\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/39167"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=24661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=24661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=24661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}