Closed Dovencio closed 1 year ago
Can you provide an example repo so I can try and run a demo?
There seems to be some confusion between new Color(float r, float g, float b, float a);
and new Color(byte r, byte g, byte b, byte a);
.
The first constructor takes values 0.0 - 1.0 and the second takes values 0 - 255.
Here is one that I made quickly using VS 2022 that should reflect the error. If the error pattern is hard to see you can change userControl1.BackColor = System.Drawing.Color.Black
https://github.com/Dovencio/GradTest
Here is one that I made quickly using VS 2022 that should reflect the error. If the error pattern is hard to see you can change
userControl1.BackColor = System.Drawing.Color.Black
https://github.com/Dovencio/GradTest
Versione3.0.1-beta fixes this, please check and report any issues.
Verified fixed on V. 3.0.1-beta
I'm using:
C# .NET 6 Core DirectX 12.1 NVIDIA GeForce GTX 4070 Ti
Description:
Attempting to draw with a linear gradient brush after version 2.1.41 causes unexpected results. I'm using the following method below with all set to true to create the factories.
Then I use this method to draw the gradient:
Expected Result:
In version 2.1.41:
Actual Result:
In version 2.2.0+: