How to Draw rectangle image in .Net 6 Web API and convert into Base64 string?

Shashank Sivakoti 1 Reputation point
2022-11-08T12:53:32.933+00:00

How to Draw rectangle image in .Net 6 Web API and convert into Base64 string?

In c# its working Please refer this link https://learn.microsoft.com/en-us/answers/questions/1074927/increase-dots-size-in-rectangle.html

Starting in .NET 6, the platform analyzer emits compile-time warnings when referencing code is compiled for non-Windows operating systems. In addition, the following run-time exception is thrown unless you set a configuration option:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Other
Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.