Examples of crop()


Examples of com.github.axet.starjeweled.core.Lookup.crop()

        BufferedImage i = lookup.filterMask(desktopImage);
        frame.mask.setImage(i);
        BufferedImage i2 = lookup.filterNoise(i);
        frame.noise.setImage(i2);
        rectangle = lookup.getBounds(i2);
        BufferedImage i3 = lookup.crop(i2, rectangle);
        frame.bounds.setImage(i3);

        Recognition rr = new Recognition(desktopImage, rectangle);
        colorTable = new BoardColorsTable(rr.matrix);
View Full Code Here

Examples of com.google.appengine.api.images.ServingUrlOptions.crop()

    }

    @Test
    public void servingUrlWithSecureFlagFalse() throws Exception {
        ServingUrlOptions servingUrlOptions = ServingUrlOptions.Builder.withBlobKey(blobKey);
        String url = imagesService.getServingUrl(servingUrlOptions.crop(false));
        assertStartsWith("http://", url);

        url = imagesService.getServingUrl(servingUrlOptions.imageSize(32).crop(false).secureUrl(false));
        assertStartsWith("http://", url);
    }
View Full Code Here

Examples of ij.process.ImageProcessor.crop()

    public boolean cropImage(Image i, File outputFile, int top, int left, int width, int height) {
        ImagePlus ip = ((ImageJImage)i).getImagePlus();
        ImageProcessor processor = ip.getProcessor();

        processor.setRoi(left, top, width, height);
        processor = processor.crop();
        ip.setProcessor(null, processor);

        return ImageProcess.save(((ImageJImage) i).getImageType(), ip, outputFile);
    }
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

    if (figure.getFragmentsBounds().length != 1) {
      return false;
    }
    Rectangle bounds = figure.getBounds().getCopy();
    Insets insets = figure.getInsets();
    bounds.crop(insets);
    if (insets.top > THRESHHOLD && insets.left > THRESHHOLD
        && insets.right > THRESHHOLD && insets.bottom > THRESHHOLD) {
      return !bounds.contains(location);
    }
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

    // since the figure insets could be 0, so we expand it a little, thus
    // even the point is
    // a little inside the content area, we still think it is selection the
    // object.
    if (bounds.height < 3 * THRESHHOLD || bounds.width < 3 * THRESHHOLD) {
      bounds.crop(INSETS_1);
    } else {
      bounds.crop(INSETS_CONST);
    }
    return !bounds.contains(location);
  }
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

    // a little inside the content area, we still think it is selection the
    // object.
    if (bounds.height < 3 * THRESHHOLD || bounds.width < 3 * THRESHHOLD) {
      bounds.crop(INSETS_1);
    } else {
      bounds.crop(INSETS_CONST);
    }
    return !bounds.contains(location);
  }

  /*
 
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

          g.translate(-_blockBox.getBorderPaddingInsets().left,
              -_blockBox.getBorderPaddingInsets().top);

          Rectangle rect = new Rectangle(0, 0, _blockBox.getWidth(),
              _blockBox.getHeight());
          rect.crop(_blockBox.getBorderInsets());

          if (this._needHScroll && this._needVScroll) {
            BorderUtil.drawScrollBar(g, BorderUtil.SCROLL_WIDTH,
                rect, BorderUtil.BOTH);
          } else if (this._needHScroll) {
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

  g.drawLine(r.x, r.y + 2, r.right() - 1, r.y + 2);
  g.drawLine(r.x, r.bottom() - 3, r.right() - 1, r.bottom() - 3);
  g.drawLine(r.x, r.y + 2, r.x, r.bottom() - 3);
  g.drawLine(r.right() - 1, r.bottom() - 3, r.right() - 1, r.y + 2);
 
  r.crop(new Insets(1, 1, 0, 0));
  r.expand(1, 1);
  r.crop(getInsets(figure));
  drawConnectors(g, figure.getBounds().getCropped(in));
}
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

  g.drawLine(r.x, r.y + 2, r.x, r.bottom() - 3);
  g.drawLine(r.right() - 1, r.bottom() - 3, r.right() - 1, r.y + 2);
 
  r.crop(new Insets(1, 1, 0, 0));
  r.expand(1, 1);
  r.crop(getInsets(figure));
  drawConnectors(g, figure.getBounds().getCropped(in));
}

}
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.crop()

  g.drawLine(r.x, r.y + 2, r.right() - 1, r.y + 2);
  g.drawLine(r.x, r.bottom() - 3, r.right() - 1, r.bottom() - 3);
  g.drawLine(r.x, r.y + 2, r.x, r.bottom() - 3);
  g.drawLine(r.right() - 1, r.bottom() - 3, r.right() - 1, r.y + 2);
 
  r.crop(new Insets(1, 1, 0, 0));
  r.expand(1, 1);
  r.crop(getInsets(figure));
  drawConnectors(g, figure.getBounds().getCropped(in));
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.