Bug 457060 - The FillRectangle draws differently in mono.
Summary: The FillRectangle draws differently in mono.
Status: RESOLVED DUPLICATE of bug 424002
Alias: None
Product: Mono: Class Libraries
Classification: Mono
Component: libgdiplus (show other bugs)
Version: 1.9
Hardware: Other Ubuntu
: P5 - None : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-06 19:42 UTC by Borja Sanchez Zamorano
Modified: 2008-12-23 21:21 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Borja Sanchez Zamorano 2008-12-06 19:42:25 UTC
When FillRectangle is used, the X is decreased in 1.

g.FillRectangle(new SolidBrush(Color.Red), 10, 10, 20, 20);

// For good paint in mono I use, but is different than Microsoft .NET
// g.FillRectangle(new SolidBrush(Color.Red), 10 + 1, 10, 20, 20);
Comment 1 Sebastien Pouliot 2008-12-23 21:21:42 UTC
Known issue. GDI+ and Cairo have different semantics. We try to adjust the values as close as possible to be identical on both platform but some differences (mostly 1 pixel) cannot be fixed for every cases.

*** This bug has been marked as a duplicate of bug 424002 ***