Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78958 --- shadow/78958 2006-08-24 19:25:16.000000000 -0400 +++ shadow/78958.tmp.2459 2007-02-01 10:55:04.000000000 -0500 @@ -1,23 +1,23 @@ Bug#: 78958 Product: Mono: Class Libraries -Version: 1.1 -OS: Solaris 8 +Version: 1.2 +OS: All OS Details: -Status: CLOSED +Status: REOPENED Resolution: Severity: Unknown Priority: Normal -Component: Sys.Drawing. +Component: libgdiplus AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: Cc: -Summary: VisibleClipBound Behaviors incorrectly on solaris with regards to other distributions of mono +Summary: VisibleClipBound incorrect with clipping region Description of Problem: Solaris implementation does not behave the same way. Getting the System.Drawing.Graphics.VisibleClipBounds on Solaris does not account for rotation transformation the same way it does on Windows. @@ -62,6 +62,28 @@ ------- Additional Comments From [EMAIL PROTECTED] 2006-08-24 19:25 ------- This is under Solaris/SPARC. The easiest way to set it up is to setup a clipping region then apply a transformation (rotate). Then get the VisibleClipBounds,which in not properly affected by rotate or other transformations. + +------- Additional Comments From [EMAIL PROTECTED] 2007-02-01 10:55 ------- +Reopening. This has nothing to do with Solaris, SPARC or rotation. + +using System; +using System.Drawing; + +class Program { + + static void Main () + { + using (Bitmap bmp = new Bitmap (1000, 1000)) { + using (Graphics g = Graphics.FromImage (bmp)) { + g.Clip = new Region (new RectangleF (0, 0, 200, 200)); + Console.WriteLine (g.VisibleClipBounds); + } + } + } +} + +Libgdiplus: {X=0,Y=0,Width=1000,Height=1000} +MS GDI+: {X=0,Y=0,Width=200,Height=200} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
