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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=402172#c2


Mike Gratsas <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                                        |NEW
      Info Provider|[EMAIL PROTECTED]                       |




--- Comment #2 from Mike Gratsas <[EMAIL PROTECTED]>  2008-06-27 10:04:41 MDT 
---
Created an attachment (id=224872)
 --> (https://bugzilla.novell.com/attachment.cgi?id=224872)
Demonstration of a bug

Please run the attached application to detect issue with indexed bitmaps. I'm
not sure, but I think a following implementation should be used for the method:

[DllImport("gdiplus.dll")]
internal static extern Status GdipGetImageAttributesAdjustedPalette(IntPtr
imageattr, ref IntPtr colorPalette, ColorAdjustType colorAdjustType);

public void GetAdjustedPalette (ColorPalette palette, ColorAdjustType type)
{
        IntPtr colorPalette = palette.getGDIPalette();
        Status status = GDIPlus.GdipGetImageAttributesAdjustedPalette
(nativeImageAttr, ref colorPalette, type);
    palette.setFromGDIPalette (colorPalette);
    if (colorPalette != IntPtr.Zero)
        Marshal.FreeHGlobal(colorPalette);
        GDIPlus.CheckStatus (status);
}


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to