In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what are the class libraries used to replace System.Drawing on .net Core. I hope you will get something after reading this article. Let's discuss it together.
ImageProcessor
Address: https://github.com/JimBobSquarePants/ImageProcessor/
Net Core has been supported since 3. 0.
The support is very comprehensive, and this class library can be given top priority if it is only used to convert zoomed images, or to manipulate pixels manually.
But does not support drawing CAPTCHA and other description class functions, in the future will support, see https://github.com/JimBobSquarePants/ImageProcessor/issues/264.
Because the author has not yet released 3. 0 to nuget, the installation needs to add a source for myget.
How to add the source of myget can refer to https://www.myget.org/nuget.
After adding, use nuget to install ImageProcessorCore.
CoreCompat
Address: https://github.com/CoreCompat/CoreCompat
This class library uses mono's System.Drawing implementation, as long as you install code that previously used System.Drawing without modification at all.
It also supports the functions of drawing verification codes and other description classes.
If you need linux or osx support, you can install runtime.linux.CoreCompat.System.Drawing and runtime.osx.10.10-x64.CoreCompat.System.Drawing.
ZKWeb.System.Drawing
Address: https://github.com/zkweb-framework/zkweb.system.drawing
This class library is a class library that I recreated when I was dissatisfied with using CoreCompat. It was also modified from mono's System.Drawing.
The differences between this class library and CoreCompat are as follows
Without using a strong name, CoreCompat uses a forged signature to match the assembly name, but causes old projects such as Asp.Net and Owin to check for signatures to fail to start
If you download and compile a CoreCompat project directly, there will be more than 100 errors, most of which are errors that cannot be found. I don't know how the author compiled the past.
This project copies all the required files from mono 4.6.1.13 and modifies them, which can be downloaded and compiled directly through the
You can run the unit test using dotnet test, and the current pass rate is about 80%.
Actually tested on linux and given the command to install libgdiplus in each distribution, which has been tested so far
Ubuntu Server 16.04 LTS 64bit
Fedora 24 64bit
CentOS 7.2 64bit
Do not reference System.Drawing.Primitive, because System.Drawing.Primitive references the original System.Drawing under .net Framework at the same time, which may lead to compile-time type conflicts (only warnings are actually available)
The ZKWeb.System.Drawing class library will be maintained until there is a better alternative. If you encounter problems or errors in use, you are welcome to submit issue to the project address.
After reading this article, I believe you have a certain understanding of the class libraries used to replace System.Drawing on .net Core. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.