Package processing.core

Examples of processing.core.PImage


    //this.setLabel(label);

    if (img_up_path == null)
      return;

    PImage img_src = controller.applet.loadImage(img_up_path);

    if (w == 0 || h == 0) {
      w = img_src.width;
      h = img_src.height;
      img_up = img_src;
View Full Code Here


    //this.setPos(x,y);
    //this.setSize(w,h);
    //this.setLabel(label);
    this.setController(c);

    PImage img_src = controller.applet.loadImage(img_up_path);

    img_up = controller.makeImgUp((int) w, (int) h, img_src);

    if (img_down_path != null && img_down_path != "")
      img_down = controller.makeImgDown((int) w, (int) h, controller.applet.loadImage(img_down_path));
View Full Code Here

  //to do tidy
    GLOBAL.sketchChairs.getCurChair().build();
    SETTINGS.materialThickness = 1.2f;
    GLOBAL.sketchChairs.getCurChair().setPlaneWidth(1.2f)
    GLOBAL.sketchChairs.getCurChair().build();
    PImage saveImg = GLOBAL.sketchChairs.getCurChair()
        .renderDiagram(600, 600, (float) (-Math.PI / 8),
            (float) (-Math.PI / 4),false);
   
    GLOBAL.applet.smooth(8);
    //saveImg.resize((int)(saveImg.width/2.0f), (int)(saveImg.height/2.0f));
View Full Code Here

 
  private void makePNGPreview() {
   
    int previewWidth = width;
    int previewHeight = height;
    PImage img = GLOBAL.sketchChairs.getCurChair().renderDiagram(SETTINGS.renderWidth,SETTINGS.renderHeight,GLOBAL.cropExportToScreen);
    img.save(GLOBAL.pngPreviewSaveLocation);
    //img.delete();
    img = null;
    System.gc();
  }
View Full Code Here

      int dot = path.lastIndexOf(".");
      String ext = path.substring(dot + 1);

      if (ext.equals("jpg") || ext.equals("png")) {

        PImage image = applet.loadImage(path);
        PImage imageCpy = applet.createImage(40, 40, 2);

        if (image.width > image.height)
          imageCpy.copy(image, 0, 0, image.height, image.height, 0,
              0, 40, 40);
        else
          imageCpy.copy(image, 0, 0, image.width, image.width, 0, 0,
              40, 40);

        //image.resize(40, 40);

        button = new GUIButton(0, 0, imageCpy, null, GLOBAL.applet, gui);
View Full Code Here

      int dot = path.lastIndexOf(".");
      String ext = path.substring(dot + 1);

      if (ext.equals("jpg") || ext.equals("png")) {

        PImage image = applet.loadImage(path);
        PImage imageCpy = applet.createImage(thumbSize, thumbSize, 2);

        if (image.width > image.height)
          imageCpy.copy(image, 0, 0, image.height, image.height, 0,
              0, thumbSize, thumbSize);
        else
          imageCpy.copy(image, 0, 0, image.width, image.width, 0, 0,
              thumbSize, thumbSize);

        //image.resize(40, 40);

        button = new GUIButton(0, 0, imageCpy, null, GLOBAL.applet, gui);
View Full Code Here

         
         
          int[] img = new int[bufferedImage.getWidth() * bufferedImage.getHeight()];           
          bufferedImage.getRGB(0, 0, bufferedImage.getWidth(), bufferedImage.getHeight(), img, 0, 0);
                   
          PImage temp = new PImage(bufferedImage.getWidth(), bufferedImage.getHeight());
          System.arraycopy(img, 0, temp.pixels, 0, img.length); //temp.pixels
         
         
          // PImage temp = new PImage(bufferedImage);
         
View Full Code Here

           
            // we have a front face?
            // load as texture
           
           
            PImage faceImage = parent.loadImage(folder + "/" +  filename.replaceAll(".ana", ".jpg"));
           
            logger.info("loading image: " + filename);
           
            texturePool.add(new GLTexture(parent));
           
View Full Code Here

           
            // we have a front face?
            // load as texture
           
           
            PImage faceImage = parent.loadImage(folder + "/" +  filename.replaceAll(".ana", ".jpg"));
           
            logger.info("loading image: " + filename);
           
            // texturePool.add(new GLTexture(parent));           
            // PImage scaledFaceImage = new PImage(512, 512);
View Full Code Here

            logger.info("Searching eyes in: " + imageName);

            // TODO: esto es una cagada... aca siempre tira una excepcion.
            // implementar un wrapper de OpenCV serio

            PImage temp = new PImage(image);                 

            logger.info("IMAGE INFO: " + imageName + "SIZE: " + temp.width + " : " + temp.height);
            logger.info("ANALIZING IMAGE");
            faces = fd.analyze(temp);
         
View Full Code Here

TOP

Related Classes of processing.core.PImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.