oxyplot / oxyplot-avalonia

A cross-platform plotting library for .NET. This package targets Avalonia apps.
https://oxyplot.github.io/
MIT License
278 stars 47 forks source link

Does OxyPlot use System.Drawing? #50

Closed sleytus2 closed 1 year ago

sleytus2 commented 1 year ago

Newbie here...

We're developing a cross-platform Windows / MacOS app using Avalonia. As you are probably aware Microsoft no longer supports cross-platform System.Drawing -- only Windows. So, my question concerns whether OxyPlot is also tethered to System.Drawing or does it use something else, like SkiaSharp?

Thanks...

VisualMelon commented 1 year ago

OxyPlot-Avalonia uses the Avalonia visuals for rendering: it's not tied to any specific renderer, and I'm sure is not dependent on System.Drawing.

There is a System.Drawing exporter provision (https://www.nuget.org/packages/OxyPlot.Core.Drawing/) which shares code with the WinForms provision, so you may see references to it elsewhere in the core libraries, but shouldn't have anything to do with oxyplot-avalonia.

sleytus2 commented 1 year ago

@VisualMelon -- wow, thanks for the quick response. This is excellent news -- we'll be giving OxyPlot a try.