GPUMonochromeFilter class
@Author: gstory @CreateDate: 2022/1/26 3:03 下午 @Email gstory0404@gmail.com @Description: Converts the image to a single-color version, based on the luminance of each pixel 根据每个像素的亮度将图像转换为单色版本
Constructors
- GPUMonochromeFilter({double? intensity, double? red, double? green, double? blue, double? alpha})
- intensity: The degree to which the specific color replaces the normal image color (0.0 - 1.0, with 1.0 as the default) color: The color to use as the basis for the effect, with (0.6, 0.45, 0.3, 1.0) as the default.
Properties
- alpha ↔ double?
-
getter/setter pair
- blue ↔ double?
-
getter/setter pair
- green ↔ double?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- intensity ↔ double?
-
getter/setter pair
- red ↔ double?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String
-
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setColor(
double red, double green, double blue, double alpha) → void -
setIntensity(
double intensity) → void -
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited