public class ColorFilter extends Filter
A ColorFilter is a Filter that blends the RGB value of each pixel in the original image with that of a single Color that it uses. The alpha value of the ColorFilter's Color is proportional to the strength of its influence on the filtered image's RGB values. An alpha value of 0 has no effect, and an alpha value of 1 completely replaces the original image's RGB values, thus turning the filtered image into a colored silhouette. The alpha values of the original image's pixels are left unchanged in the filtered image.
Constructor and Description |
---|
ColorFilter(Color color)
Constructs a ColorFilter that uses the specified Color.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Returns the Color that this ColorFilter uses.
|