iron-software / IronSoftware.System.Drawing

An open-source System.Drawing.Common replacement for .NET 5 and above on all platforms. Bringing together System.Drawing, Maui, and ImageSharp's Bitmap, Image, Font, and Shape types via an agnostic free NuGet package.
Other
120 stars 19 forks source link

Fixes casting issue from AnyBitmap to SKBitmap on Linux #111

Closed bline-ironsoftware closed 4 months ago

bline-ironsoftware commented 4 months ago

Title

System.NullReferenceException when casting from AnyBitmap to SKBitmap on Linux

Description

When I cast AnyBitmap to SKBitmap on Linux, the SkiaSharp native library (libSkiaSharp) is missing or not found in the expected locations. Therefore, I install the SkiaSharp.NativeAssets.Linux package in the same version as SkiaSharp to make it work.

Fixes #(issue number) DW-24

Type of change

Please select the relevant option by placing an 'x' inside the brackets, like this: [x].

How Has This Been Tested?

Run IronDrawing PR Validation

Checklist:

Please run through the checklist as much as possible and mark the items completed by placing an 'x' inside the brackets, like this: [x].

Additional Context

Add any other context, screenshots, or information about the pull request here.

bline-ironsoftware commented 4 months ago

This is expected behavior, if someone want to use SKia they need to install by themself.

@bline-ironsoftware please close this PR.