All Known Implementing Classes:
BlendMode, DissolveBlendFunction, LightenBlendFunction, LinearDodgeBlendFunction, MaskBlendFunction, MultiplyBlendFunction, NoBlendFunction, NormalBlendFunction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@NullMarked @FunctionalInterface public interface BlendFunction
BlendFunction controls how the pixel being drawn (top) and the destination pixel (bottom) will be blended together to produce a final color that is drawn.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(int[] pixels, int pixelIndex, Color color)
    Method called to set the color of the pixel at pixelIndex.
  • Method Details

    • set

      void set(int[] pixels, int pixelIndex, Color color)
      Method called to set the color of the pixel at pixelIndex.
      Parameters:
      pixels - the array of pixels
      pixelIndex - the index of the destination pixel to modify
      color - the Color of the top pixel being applied