Tabnine Logo
PApplet.image
Code IndexAdd Tabnine to your IDE (free)

How to use
image
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.image (Showing top 5 results out of 315)

origin: mirador/mirador

public void image(PImage img,
  float a, float b, float c, float d,
  int u1, int v1, int u2, int v2) {
 intf.app.image(img, a, b, c, d, u1, v1, u2, v2);
}

origin: mirador/mirador

public void image(PImage img, float a, float b) {
 intf.app.image(img, a, b);
}

origin: mirador/mirador

public void image(PImage img, float a, float b, float c, float d) {
 intf.app.image(img, a, b, c, d);
}

origin: poqudrof/PapARt

  /**
   * Called in Automatic mode to display the image.
   */
  @Override
  public void draw() {
    
    if(this.isCalibrationMode){
      MultiSimpleCalibrator.drawCalibration(getGraphics());
      return;
    }
    drawScreensOver();
    parent.noStroke();
    PImage img = camera.getPImage();
    if (camera != null && img != null) {
      parent.image(img, 0, 0, parent.width, parent.height);
//            ((PGraphicsOpenGL) (parent.g)).image(camera.getPImage(), 0, 0, frameWidth, frameHeight);
    }

    // TODO: Distorsion problems with higher image space distorisions (useless ?)
    DrawUtils.drawImage((PGraphicsOpenGL) parent.g,
        this.render(),
        0, 0, parent.width, parent.height);
  }

origin: poqudrof/PapARt

  public static void drawAR(PApplet parent, PGraphicsOpenGL g,
      MultiSimpleCalibrator multiCalibrator, PVector pt) {

    // AR rendering, for touch and color tracking (and debug). 
    if (multiCalibrator.getDisplay() instanceof ARDisplay) {
      ARDisplay display = (ARDisplay) multiCalibrator.getDisplay();
      display.drawScreensOver();
      parent.noStroke();
      PImage img = multiCalibrator.getCameraTracking().getPImage();
      if (multiCalibrator.getCameraTracking() != null && img != null) {
        parent.image(img, 0, 0, parent.width, parent.height);
//            ((PGraphicsOpenGL) (parent.g)).image(camera.getPImage(), 0, 0, frameWidth, frameHeight);
      }

      // TODO: Distorsion problems with higher image space distorisions (useless ?)
      DrawUtils.drawImage((PGraphicsOpenGL) parent.g,
          display.render(),
          0, 0, parent.width, parent.height);
    }

  }

processing.corePAppletimage

Javadoc

( begin auto-generated from image.xml ) Displays images to the screen. The images must be in the sketch's "data" directory to load correctly. Select "Add file..." from the "Sketch" menu to add the image. Processing currently works with GIF, JPEG, and Targa images. The img parameter specifies the image to display and the x and y parameters define the location of the image from its upper-left corner. The image is displayed at its original size unless the width and height parameters specify a different size.

The imageMode() function changes the way the parameters work. For example, a call to imageMode(CORNERS) will change the width and height parameters to define the x and y values of the opposite corner of the image.

The color of an image may be modified with the tint() function. This function will maintain transparency for GIF and PNG images. ( end auto-generated )

Advanced

Starting with release 0124, when using the default (JAVA2D) renderer, smooth() will also improve image quality of resized images.

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now