java.lang.Object
org.praxislive.video.pgl.code.userapi.PImage
Direct Known Subclasses:
PGraphics2D, PGraphics3D

public abstract class PImage extends Object
  • Field Details

    • width

      public final int width
    • height

      public final int height
  • Constructor Details

    • PImage

      public PImage(int width, int height)
  • Method Details

    • find

      public <T> Optional<T> find(Class<T> type)
      Search for an instance of the given type.
      Type Parameters:
      T -
      Parameters:
      type - class to search for
      Returns:
      Optional wrapping the result if found, or empty if not
    • unwrap

      protected abstract processing.core.PImage unwrap(PGLContext context)