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 AlphaTransform
    Describes 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 Detail

      • getAlpha

        int getAlpha()
      • toTransform

        default Transform toTransform()
        Converts this AlphaTransform into a regular Transform. 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.