[Mono-bugs] [Bug 556181] New: Wrong Dpi values when created Graphic instance with Graphic.FromImage()
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 17 11:11:42 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=556181#c0
Summary: Wrong Dpi values when created Graphic instance with
Graphic.FromImage()
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: Other
OS/Version: openSUSE 11.1
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Drawing.
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: ypupo2002 at live.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=327941)
--> (http://bugzilla.novell.com/attachment.cgi?id=327941)
Minimal program to reproduce the bug
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
After create an Image instance (new Image(100, 100)), and setting image
resolution
to certain dpis (different to 96), if and instance of Graphics is created based
con that Image instance (Graphic.FromImage(instance)), the Graphics instance
return wrong dpi value (instead of taking dpi from Image instance is defaulting
to 96)
Reproducible: Always
Steps to Reproduce:
1. Create an Instance of Image with img = new Image(100, 100)
2. Set the resolution to a value different to 96 (img.SetResolution(100, 100))
3. Create an instance of a Graphic with gr = Graphic.FromImage(img);
4. Verify that gr.DpiX and gr.DpiY are different to img.HorizontalResolution
and img.VerticalResolution respectively.
Actual Results:
Wrong dpi value for the Graphic object (not equal to the resolution of the
Image object)
Expected Results:
Same value of the Dpi for the Graphic object and the Image object
--
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