mail-archives/mono-bugs/2005-June/030380.html

103 строки
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 75254][Nor] Changed - Palette Patch breaks Icons
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075254%5D%5BNor%5D%20Changed%20-%20Palette%20Patch%20breaks%20Icons&In-Reply-To=bug-75254%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="030379.html">
<LINK REL="Next" HREF="030381.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 75254][Nor] Changed - Palette Patch breaks Icons</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075254%5D%5BNor%5D%20Changed%20-%20Palette%20Patch%20breaks%20Icons&In-Reply-To=bug-75254%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 75254][Nor] Changed - Palette Patch breaks Icons">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Mon Jun 13 16:01:07 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="030379.html">[Mono-bugs] [Bug 75255][Maj] New - spurious unreachability warning
with GOTO
</A></li>
<LI>Next message: <A HREF="030381.html">[Mono-bugs] [Bug 75246][Nor] Changed - KeyPair of AssemblyName used
to create assembly has no effect on AssemblyName of AssemblyBuilder
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30380">[ date ]</a>
<a href="thread.html#30380">[ thread ]</a>
<a href="subject.html#30380">[ subject ]</a>
<a href="author.html#30380">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">4lw0e0402 at sneakemail.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75254">http://bugzilla.ximian.com/show_bug.cgi?id=75254</A>
--- shadow/75254 2005-06-13 12:20:54.000000000 -0400
+++ shadow/75254.tmp.25015 2005-06-13 16:01:07.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 75254
Product: Mono: Class Libraries
Version: 1.1
OS: All
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: NOTABUG
+Severity: Unknown
Priority: Normal
Component: Sys.Drawing.
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">peter at novonyx.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
TargetMilestone: ---
@@ -28,6 +28,14 @@
The problem is this line
if (gdip_is_an_indexed_pixelformat (data-&gt;PixelFormat))
return InvalidParameter;
in GdipBitmapSetPixel, it simply returns an InvalidParameter, instead of
making the pixel transparent. This worked before the palette patch was
added.
+
+------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">4lw0e0402 at sneakemail.com</A> 2005-06-13 16:01 -------
+This is actually a bug in the code that is trying to use SetPixel on
+an indexed image. It worked before because internally the image was
+being upsampled to 32-bit ARGB at load time. The fix/workaround is to
+modify the code that's calling SetPixel to convert the pixel format
+to 32-bit ARGB manually, after which SetPixel will behave as it did
+before.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="030379.html">[Mono-bugs] [Bug 75255][Maj] New - spurious unreachability warning
with GOTO
</A></li>
<LI>Next message: <A HREF="030381.html">[Mono-bugs] [Bug 75246][Nor] Changed - KeyPair of AssemblyName used
to create assembly has no effect on AssemblyName of AssemblyBuilder
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30380">[ date ]</a>
<a href="thread.html#30380">[ thread ]</a>
<a href="subject.html#30380">[ subject ]</a>
<a href="author.html#30380">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>