classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] IndexColorModel semi-fix


From: Sven de Marothy
Subject: [cp-patches] IndexColorModel semi-fix
Date: Thu, 25 Nov 2004 20:45:46 +0100

This is a bit of a workaround for some problems with IndexColorModel.
If the IndexColorModel does not have alpha, getAlpha now returns opaque
pixels, not transparent ones. So now those bitmaps are visible. 
This should really be fixed by using a different super()-constructor so
that the ColorModel.hasAlpha() method will give the correct result.
(as of the current code, it will always return true with
IndexColorModel)

2004-11-25  Sven de Marothy  <address@hidden>

        * java/awt/image/IndexColorModel.java,
        Add FIXME with respect to alpha handling.
        (getAlpha): Default to returning opaque pixels. 

Attachment: indexcm.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]