Package icyllis.arc3d.core.effects
Class BlendModeColorFilter
java.lang.Object
icyllis.arc3d.core.effects.BlendModeColorFilter
- All Implemented Interfaces:
ColorFilter,RefCounted
-
Method Summary
Modifier and TypeMethodDescriptionvoidfilterColor4f(float[] col, float[] out, ColorSpace dstCS) Applies this color filter with RGBA colors.float[]getColor()getMode()booleanReturns the flags for this filter.static @SharedPtr BlendModeColorFiltermake(float[] color, ColorSpace colorSpace, BlendMode mode) voidref()Increases the reference count by 1.voidunref()Decreases the reference count by 1.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icyllis.arc3d.core.effects.ColorFilter
andThen, compose, filterColor
-
Method Details
-
make
@Nullable @SharedPtr public static @SharedPtr BlendModeColorFilter make(@Size(4L) float[] color, @Nullable ColorSpace colorSpace, BlendMode mode) -
getColor
public float[] getColor()- Returns:
- non-premultiplied source color in sRGB space, unmodifiable.
-
getMode
-
isAlphaUnchanged
public boolean isAlphaUnchanged()Description copied from interface:ColorFilterReturns the flags for this filter. Override in subclasses to return custom flags.- Specified by:
isAlphaUnchangedin interfaceColorFilter
-
filterColor4f
Description copied from interface:ColorFilterApplies this color filter with RGBA colors. col and out store premultiplied R,G,B,A components from index 0 to 3. col and out can be the same pointer. col is read-only, out may be written multiple times.- Specified by:
filterColor4fin interfaceColorFilter- Parameters:
col- base colorout- resulting colordstCS- destination color space
-
ref
public void ref()Description copied from interface:RefCountedIncreases the reference count by 1.- Specified by:
refin interfaceRefCounted
-
unref
public void unref()Description copied from interface:RefCountedDecreases the reference count by 1.- Specified by:
unrefin interfaceRefCounted
-