praeclarum / NGraphics

NGraphics is a cross platform library for rendering vector graphics on .NET. It provides a unified API for both immediate and retained mode graphics using high quality native renderers.
MIT License
705 stars 133 forks source link

The name 'Platforms' does not exist in the current context. #123

Open DiriectorDoc opened 1 year ago

DiriectorDoc commented 1 year ago

I have created a new solution and done nothing except install NGraphics using NuGet.

My code is simply this:

using NGraphics;

var canvas = Platforms.Current.CreateImageCanvas(new Size(100), scale: 2);

This line was copied directly from this reop's README.

And 'Platforms' does not exist for some reason.

sgf commented 9 months ago

Platforms in NGraphics.Net However, since the author has not updated the nuget package in these years, I think directly downloading the source code and compiling it yourself is the best option.