public class ColorMultiplyFilter extends java.lang.Object implements Filter
A ColorMultiplyFilter is a Filter that multiplies the red, green, blue, and alpha values of each pixel in the original image with those of a single Color that it uses. For the purposes of this multiplication, the RGBA values are all treated as floating-point values between 0 and 1. Thus, a ColorMultiplyFilter can tint or darken an image, but not brighten it.
Color
Constructor and Description |
---|
ColorMultiplyFilter(Color color)
Constructs a ColorMultiplyFilter that uses the specified Color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns whether the specified object is a ColorMultiplyFilter that is
equal to this ColorMultiplyFilter.
|
Color |
getColor()
Returns the Color that this ColorMultiplyFilter uses.
|
Image |
getFilteredImage(Image image)
Returns the transformation through this Filter of the specified
Celick
image.
|
int |
hashCode() |
public ColorMultiplyFilter(Color color)
color
- The used Colorpublic final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to be compared with this ColorMultiplyFilterpublic final Color getColor()
public final Image getFilteredImage(Image image)
Filter
getFilteredImage
in interface Filter
image
- The Image to be transformed