public class PaintAlpha extends Object
The intention is to honour the alpha-channel in the process.
PaintAlpha was originally conceived to improve the
rendering of 3D Shapes with transparent colours and to allow
invisible bars by making them completely transparent.
Color.darker() was used for this,
which always returns an opaque colour.
|Constructor and Description|
|Modifier and Type||Method and Description|
Create a new (if possible, darker)
public static boolean setLegacyAlpha(boolean legacyAlpha)
PaintAlphawill try to honour alpha-channel information. In the past this was not the case. If you wish legacy functionality for your application you can request this here.
Paintof the same Type. If the Type is not supported, the original
public static BufferedImage cloneImage(BufferedImage image)
Note: when constructing the clone, the original Color Model Object is
That keeps things simple and should not be a problem, as all known Color Models
image- original BufferedImage to clone
Copyright © 2001–2017 JFree.org. All rights reserved.