Interface AlphaTransform
-
- All Known Implementing Classes:
Transform
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AlphaTransformDescribes how to draw graphics with a modified alpha channel. The alpha value is represented by a value between 0 and 100, where 0 indicates fully transparent and 100 indicates the graphics' "normal" alpha.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static AlphaTransformcreate(int value)Creates a new alpha transform that uses a fixed alpha value.intgetAlpha()default TransformtoTransform()Converts thisAlphaTransforminto a regularTransform.
-
-
-
Method Detail
-
getAlpha
int getAlpha()
-
toTransform
default Transform toTransform()
Converts thisAlphaTransforminto a regularTransform. All non-alpha values will be set to default values.
-
create
static AlphaTransform create(int value)
Creates a new alpha transform that uses a fixed alpha value.
-
-