Bug 5236 - PathGradientBrush colour interpolation works inversely to .NET on Windows
Summary: PathGradientBrush colour interpolation works inversely to .NET on Windows
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Drawing ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-05-22 10:24 UTC by Dan Parnham
Modified: 2012-05-22 10:24 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Example of radial gradient comparing mono (linux) with .NET (54.30 KB, image/png)
2012-05-22 10:24 UTC, Dan Parnham
Test case (1.88 KB, application/x-7z-compressed)
2012-05-22 10:24 UTC, Dan Parnham

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 5236 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Dan Parnham 2012-05-22 10:24:27 UTC
Created attachment 1940 [details]
Example of radial gradient comparing mono (linux) with .NET

A PathGradientBrush with a ColorBlend for the InterpolationColours property will process the colours from the brush centre to the edge defined by the path. In .NET the colours are interpolated from the edge to the centre.

Please see an example in the attached image showing the same exe running in both .NET and mono (2.11.1) on ubuntu (12.04).

I will also attach the project I created as a test case.
Comment 1 Dan Parnham 2012-05-22 10:24:56 UTC
Created attachment 1941 [details]
Test case