[Mono-bugs] [Bug 402172] [win32] ImageAttributes. GetAdjustedPalette method implementation is invalid

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 27 12:04:41 EDT 2008


User MikeGratsas at techemail.com added comment

Mike Gratsas <MikeGratsas at techemail.com> changed:

           What    |Removed                                         |Added
             Status|NEEDINFO                                        |NEW
      Info Provider|MikeGratsas at techemail.com                       |

--- Comment #2 from Mike Gratsas <MikeGratsas at techemail.com>  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:

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

More information about the mono-bugs mailing list