Bug 4577 - Color.Empty or Color.Transparent not working for Hatchbrush backgrounds using C# on Mono
Summary: Color.Empty or Color.Transparent not working for Hatchbrush backgrounds using...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: MonoMac
Classification: Desktop
Component: Bindings ()
Version: unspecified
Hardware: Macintosh Mac OS
: Lowest normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-21 09:30 UTC by Radhakrishna
Modified: 2012-12-19 11:56 UTC (History)
3 users (show)

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

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Radhakrishna 2012-04-21 09:30:07 UTC
Color.Empty or Color.Transparent not working for Hatchbrush backgrounds using C# on Mono. Its working fine on windows but not on Mac.

Code:

System.Drawing.Drawing2D.HatchBrush hathcBrush = new
       System.Drawing.Drawing2D.HatchBrush(GetHatchStyle(objGraphEq.shade),
                evUtilities.ColorIndexToRGB(objGraphEq.color),
                Color.Empty);

The created brush's background is transparent on windows but not on Mac . Our requirement is that the brush's background should be transparent. We are unable to achieve that on Mono-Mac.
Comment 1 Miguel de Icaza [MSFT] 2012-04-23 23:22:03 UTC
Mono's System.Drawing on Mac has limitations like this.
Comment 2 Radhakrishna 2012-12-19 09:23:02 UTC
Does this has been handled in the latest releases ?

Thanks
Radhakrishna
Comment 3 Miguel de Icaza [MSFT] 2012-12-19 11:56:25 UTC
No, it means that we are aware of the limitations.   I do not believe these have been fixed in any recent versions of it.