[Mono-bugs] [Bug 479037] New: Passing PixelFormat.format24bppRgb to Bitmap.Clone returns a 32bit bitmap
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Feb 24 08:12:34 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=479037
Summary: Passing PixelFormat.format24bppRgb to Bitmap.Clone
returns a 32bit bitmap
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Drawing.
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: benjamin.dewaal at konicaminolta.eu
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
Passing System.Drawing.Imaging.PixelFormat.format24bppRgb to Bitmap.Clone
returns a 32bit image.
Reproducible: Always
Steps to Reproduce:
Code such as the following:
Bitmap bmp = new Bitmap(myStream); //Where myStream is a bitmap I loaded
earlier
Bitmap bmp24 = bmp.Clone(new Rectangle(0, 0, bitmap2.Width, bitmap2.Height),
PixelFormat.Format24bppRgb);
Actual Results:
After this, bmp24 contains a 32bit image (as determined by the bit count value
in the bytes of the bitmap itself).
Expected Results:
Same as Microsoft's .NET Framework: The same code under .NET Framework returns
a 24bit image.
Tested and confirmed by myself on Mono 2.2_5 under MacOS X and reported to me
by a third party under Mono 2.x(?) under GNU/Linux.
--
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