[Mono-bugs] [Bug 492299] New: Graphics.Clear(Color) doesn't work on clipped Graphics
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Apr 5 15:50:55 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=492299
Summary: Graphics.Clear(Color) doesn't work on clipped Graphics
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libgdiplus
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: stifu at free.fr
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=284151)
--> (http://bugzilla.novell.com/attachment.cgi?id=284151)
Test case
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.1b4pre) Gecko/20090405 Shiretoko/3.5b4pre (.NET CLR 3.5.30729)
See test case.
We have a panel, we define a region to be excluded from the painting, then we
clear the graphics with black. It should result in a black rectangle, in which
there is a smaller gray rectangle (the part we excluded by setting the clip
region).
With Mono, it doesn't work. The Graphics.Clear() does nothing at all, so we
only see the gray panel, with no black on it. Also, even though it does
nothing, it is extremely slow.
Here are the results for calling the paint function of the test case 100 times,
on my computer:
NET on Windows: 0 second
Mono on openSUSE: over 5 seconds
Reproducible: Always
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list