[Mono-bugs] [Bug 381169] New: System.Drawing.Image and png resolution

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 18 02:16:27 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=381169


           Summary: System.Drawing.Image and png resolution
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tibaer at infomaniak.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer


Description of Problem:

Both HorizontalResolution and VerticalResolution of an 
System.Drawing.Image return 0 when the image is a png

Note that this does not happen with a jpg (bug already solved : 
https://bugzilla.novell.com/show_bug.cgi?id=MONO68117)

Steps to reproduce the problem:
1. Load a png image using "Bitmap.FromFile("/path/to/a/nice/image.png")"
(System.Drawing)
2. Read properties VerticalResolution and HorizontalResolution : they should be
zero !


Actual Results:

Resolution is 0.

Expected Results:

The resolution should not be 0...

How often does this happen? 

Always.

Additional Information:

As written above the bug has been corrected for jpg
(https://bugzilla.novell.com/show_bug.cgi?id=MONO68117) but seems that it is
still there with png.


-- 
Configure bugmail: https://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