[Mono-bugs] [Bug 363431] New: Bitmap (... scan0) constructor reads Format24bppRgb data as 32-bit RGB
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Feb 20 16:53:32 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=363431
Summary: Bitmap (... scan0) constructor reads Format24bppRgb data
as 32-bit RGB
Product: Mono: Class Libraries
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libgdiplus
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: jan.oravec at 6com.sk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
When Bitmap constructor with Scan0 IntPtr input gets Format24bppRgb data, these
data are manipulated as 32-bit RGB.
I have checked libgdiplus sources and from comments I see that Cairo doesn't
understand 24-bit RGB. I guess that GdipCreateBitmapFromScan0 should fail on
24-bit RGB.
Also, I think that PixelFormat32bppRGB should be mapped to CAIRO_FORMAT_RGB24
(which is 32-bit) instead of CAIRO_FORMAT_ARGB32.
--
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