mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #658] Conversion to use ImageSharp rather than System.Drawing.Common #1246
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/658
State: closed
Merged: Yes
fixes #637 Conversion to use ImageSharp rather than System.Drawing.Common for cross platform compatibility.
Breaking Changes:
System.Drawing.Commonis dropped andSixLabors.ImageSharpis introduced.NativeImage.CreateFromBitmap(bitmap, options);is no longer supported, will cause failed builds.Unexpected Behaviors:
ToDataUrlwill always create png data urls, unexpected output may happen for those that manipulate this output expecting a different data url format.Obsoletions:
CreateFromBitmapOptions&CreateFromBufferOptionshave been consolidated intoCreateOptions. Implicit conversions added to ease transition.ToBitmapOptions,ToDataUrlOptions,ToPngOptions&BitmapOptionshave been consolidated intoImageOptions. Implicit conversions added to ease transition.