[Mono-bugs] [Bug 481271] New: Format24bppRgb Format16bppRgb555 Format48bppRgb as 32-bit RGB in mono (SUSE and OSX)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 2 21:20:15 EST 2009


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


           Summary: Format24bppRgb Format16bppRgb555 Format48bppRgb as
                    32-bit RGB in mono (SUSE and OSX)
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: i586
        OS/Version: SuSE Linux 10.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: vandanan at hcl.in
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6

Hi,

I am using the following code in Mono V2.2 on SUSE Linux Enterprise Desktop 10:

Bitmap bmp2 = bmp.Clone(new Rectangle(0, 0, bmp.Width, bmp.Height),
PixelFormat.Format24bppRgb )

Same code creates a 24 RGP BMP image in Windows. But in mono it creates a 32
bit depth image.
Not only this, if I am using "Format48bppRgb" or "Format16bppRgb555 " also it
is generating a same 32 bit image.

Any help is really appreciated.

Reproducible: Always

Steps to Reproduce:
1.Create a clone of the Bitmap file and mention the Pixel Format for the clone
file using the following code.
Bitmap bmp2 = bmp.Clone(new Rectangle(0, 0, bmp.Width, bmp.Height),
PixelFormat.Format24bppRgb )
2.The clone file is having a color depth of 32 bits per pixel.

Actual Results:  
The clone file generated is having a color depth of 32 bits per pixel.

Expected Results:  
The clone file generated should be having a color depth of 24 bits per pixel.

Another observation in case of Mono is that, irrespective of the Pixel Format
i.e. "Format48bppRgb" or "Format16bppRgb555" or “Format24bppRgb” specified for
the conversion of BMP file, the final BMP data generated after the cloning is
of 32 bit format.

-- 
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