Class EffectContext

java.lang.Object
com.codename1.art.effects.EffectContext

public final class EffectContext extends Object
What an effect needs to know about where it is applied.
  • Constructor Details

    • EffectContext

      public EffectContext(double scale, Raster backdrop)

      Creates a context.

      Parameters
      • scale: device pixels per unit of the node's space
      • backdrop: what is painted below the layer, for background blur and BackgroundImage; may be null
  • Method Details

    • getScale

      public double getScale()
      Device pixels per unit.
    • getBackdrop

      public Raster getBackdrop()
      What is painted below the layer, or null.