Package com.sksamuel.scrimage.color
Class AverageGrayscale
- java.lang.Object
-
- com.sksamuel.scrimage.color.AverageGrayscale
-
- All Implemented Interfaces:
GrayscaleMethod
public class AverageGrayscale extends java.lang.Object implements GrayscaleMethod
Returns a Grayscale copy of this using the average method. The Average method takes the average value of R, G, and B as the grayscale value.
-
-
Field Summary
-
Fields inherited from interface com.sksamuel.scrimage.color.GrayscaleMethod
AVERAGE, LUMA, WEIGHTED
-
-
Constructor Summary
Constructors Constructor Description AverageGrayscale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grayscale
toGrayscale(Color color)
-
-
-
Method Detail
-
toGrayscale
public Grayscale toGrayscale(Color color)
- Specified by:
toGrayscale
in interfaceGrayscaleMethod
-
-