[Mono-bugs] [Bug 60290][Nor] Changed - Promlems with x-axis on Bitmaps
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Jun 2004 05:58:37 -0400 (EDT)
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 rkumar@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60290
--- shadow/60290 2004-06-16 12:10:08.000000000 -0400
+++ shadow/60290.tmp.18381 2004-06-22 05:58:37.000000000 -0400
@@ -111,6 +111,33 @@
Additional Information:
It is independent of an absolut offset. the distance where the pixels are
repeated is dependent only on the width of the bitmap. It is alway 3/4 of
the width.
+
+------- Additional Comments From rkumar@novell.com 2004-06-22 05:58 -------
+I tried following code (a changed version of the testcase provided
+above) and it works fine, giving the expected output. Because this
+code runs fine with System.Drawing, this might be a problem with SWF.
+
+// code starts ==============
+public static void Main () {
+ Graphics oGraphics;
+ Pen myPen = new Pen(Color.Red);
+ Bitmap DrawingArea = new Bitmap (400, 400, PixelFormat.Format24bppRgb);
+ oGraphics = Graphics.FromImage(DrawingArea);
+ for ( int x = 0; x < 400; x++) {
+ oGraphics.DrawLine(myPen, x, 0, x, 400);
+ }
+ myPen.Color = Color.Black;
+ oGraphics.DrawLine(myPen,0,0,400,400);
+// DrawingArea.Save ("bug.jpg", ImageFormat.Jpeg);
+ oGraphics.Dispose();
+ Bitmap form = new Bitmap (500, 500, PixelFormat.Format24bppRgb);
+ oGraphics = Graphics.FromImage (form);
+ oGraphics.DrawImage (DrawingArea, 0, 0, DrawingArea.Width,
+DrawingArea.Height);
+ form.Save ("bug-form.jpg", ImageFormat.Jpeg);
+ oGraphics.Dispose ();
+}
+// code ends ============