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

How to use
createImage
method
in
processing.core.PApplet

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

origin: poqudrof/PapARt

/**
 * Works if the source is IPLImage ?.
 *
 * @param context
 * @return
 */
public PImage getPImageCopy(PApplet context) {
  PImage out = context.createImage(this.width, this.height, RGB);
  ImageUtils.IplImageToPImage(currentImage, this.format == PixelFormat.RGB, out);
  return out;
}
origin: poqudrof/PapARt

public PImage getPImageCopy() {
  PImage out = parent.createImage(this.width, this.height, RGB);
  if (currentImage == null) {
    System.err.println("Error in PImageCopy(): no current image. ");
    return out;
  }
  ImageUtils.IplImageToPImage(currentImage, false, out);
  return out;
}
origin: ajavamind/Processing-Cardboard

public PImage requestImage(String filename) {
  PImage vessel = createImage(0, 0, ARGB);
  AsyncImageLoader ail = new AsyncImageLoader(filename, vessel);
  ail.start();
  return vessel;
}
origin: openimaj/openimaj

public PImage asPImage(MBFImage frame) {
  PImage img = this.parent.createImage(frame.getWidth(), frame.getHeight(), RGB);
  img.pixels = frame.toPackedARGBPixels();
  return img;
}
origin: org.processing/core

PImage outgoing = createImage(w, h, format);
origin: org.processing/core

 g.awaitAsyncSaveCompletion(filename);
PImage vessel = createImage(0, 0, ARGB);
AsyncImageLoader ail =
 new AsyncImageLoader(filename, extension, vessel);
origin: poqudrof/PapARt

  private void init() {
    validPointsPImage = papplet.createImage(getWidth(), getHeight(), PConstants.RGB);
    nativeArrayToErode = IplImage.create(getWidth(), getHeight(), IPL_DEPTH_8U, 1);
    erosionIndexer = (UByteIndexer) nativeArrayToErode.createIndexer();
//        validCopy = Arrays.copyOf(depthData.validPointsMask, depthData.validPointsMask.length);
  }

origin: poqudrof/PapARt

    ARDisplay.class.getResource("distortFrag.glsl").toString(),
    ARDisplay.class.getResource("distortVert.glsl").toString());
mapImg = parent.createImage((int) (quality * frameWidth), (int) (quality * frameHeight), PApplet.RGB);
mapImg.loadPixels();
processing.corePAppletcreateImage

Javadoc

Creates a new PImage (the datatype for storing images). This provides a fresh buffer of pixels to play with. Set the size of the buffer with the width and height parameters. The format parameter defines how the pixels are stored. See the PImage reference for more information.

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
  • 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
  • random
    ( begin auto-generated from random.xml ) Generates random numbers. Each time the random() function
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • 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