Package rekit.logic.filters
Class GrayScaleMode
java.lang.Object
rekit.logic.filters.GrayScaleMode
- All Implemented Interfaces:
Filter
This filter realizes a filter which will convert all colors to grayscale.
- Author:
- Dominik Fuchss
-
Field Summary
Fields inherited from interface rekit.logic.filters.Filter
ALL_FILTERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(AbstractImage image) Apply Filter.Apply Filter.boolean
This boolean indicates whether this filter can be applied pixel per pixel (slow).boolean
This boolean indicates whether this filter can be applied pixel per pixel (fast).
-
Constructor Details
-
GrayScaleMode
public GrayScaleMode()
-
-
Method Details
-
apply
Description copied from interface:Filter
Apply Filter. -
apply
Description copied from interface:Filter
Apply Filter. -
isApplyPixel
public boolean isApplyPixel()Description copied from interface:Filter
This boolean indicates whether this filter can be applied pixel per pixel (fast).- Specified by:
isApplyPixel
in interfaceFilter
- Returns:
true
ifFilter.apply(RGBAColor)
shall be used
-
isApplyImage
public boolean isApplyImage()Description copied from interface:Filter
This boolean indicates whether this filter can be applied pixel per pixel (slow).- Specified by:
isApplyImage
in interfaceFilter
- Returns:
true
ifFilter.apply(AbstractImage)
shall be used
-