You can find more details at: Using System.Drawing with .NET 6 on non-Windows Platform
Last active
March 16, 2022 08:19
-
-
Save aspose-com-gists/6b68c9e99c318d63379890e37b243e38 to your computer and use it in GitHub Desktop.
Using System.Drawing with .NET 6 on non-Windows Platform | Aspose.Drawing in macOS, Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Drawing; | |
using System.Drawing.Drawing2D; | |
Aspose.Drawing.License license = new Aspose.Drawing.License(); | |
license.SetLicense("Aspose.Drawing.NET.lic"); | |
Bitmap bitmap = new Bitmap(1000, 800); | |
Graphics graphics = Graphics.FromImage(bitmap); | |
graphics.SmoothingMode = SmoothingMode.HighQuality; | |
Brush brush = new LinearGradientBrush(new Point(0, 0), new Point(1000, 800), Color.Red, Color.Blue); | |
graphics.FillEllipse(brush, 100, 100, 800, 600); | |
bitmap.Save("gradient.png"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment