[Mono-bugs] [Bug 554416] New: Graphics.ScaleTransform does not give expectedly scaled output.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 10 20:38:16 EST 2009


           Summary: Graphics.ScaleTransform does not give expectedly
                    scaled output.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aenomoto at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User

(I cannot try the repro now, hence I'm just forwarding a bug report from local

The following sample code uses scale transform using System.Drawing, and gives
different graphics output than GDI+.

using System;
using System.Drawing;
using System.Windows.Forms;

class Test : Form {
 static void Main() {
   Application.Run(new Test { ClientSize = new Size(100, 100) });
 protected override void OnPaint(PaintEventArgs e) {
   e.Graphics.ScaleTransform(100, 100);
   using (var pen = new Pen(Color.Red, 0.08f))
     e.Graphics.DrawLine(pen, 0, 0, 1, 1);


The outputs from .NET (expected), Wine+mono on Windows on FreeBSD (correct),
and mono on FBSD (actual) are being attached.

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