Examples of ImageFilter


Examples of com.lowagie.tools.arguments.filters.ImageFilter

  /**
   * Constructs a Tiff2Pdf object.
   */
  public Tiff2Pdf() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to convert", false, new ImageFilter(false, false, false, false, false, true)));
    arguments.add(new FileArgument(this, "destfile", "The file to which the converted TIFF has to be written", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pagesize", "Pagesize");
    oa.addOption("A4", "A4");
    oa.addOption("Letter", "LETTER");
    oa.addOption("Original format", "ORIGINAL");
View Full Code Here

Examples of es.unizar.cps.tecnodiscap.util.ImageFilter

          .setIcon(new ImageIcon("data/icons/view_sidetree.png")); //$NON-NLS-1$
      buttonImagen.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          JFileChooser fc = new JFileChooser();

          fc.addChoosableFileFilter(new ImageFilter());
          fc.setAccessory(new ImagePreview(fc));

          int returnVal = fc.showDialog(AdministracionResorces.this,
              Messages.getString("gui.AdministracionResorces.8")); //$NON-NLS-1$
View Full Code Here

Examples of io.fathom.cloud.image.api.os.resources.ImageFilter

        return matching;
    }

    @Override
    public List<Image> listImages(Project project) throws CloudException {
        ImageFilter filter = new ImageFilter();
        return listImages(project, filter);
    }
View Full Code Here

Examples of java.awt.image.ImageFilter

    public synchronized void addConsumer(ImageConsumer ic) {
  if (proxies == null) {
      proxies = new Hashtable();
  }
  if (!proxies.containsKey(ic)) {
      ImageFilter imgf = filter.getFilterInstance(ic);
      proxies.put(ic, imgf);
      src.addConsumer(imgf);
  }
    }
View Full Code Here

Examples of java.awt.image.ImageFilter

     *
     * @see ImageConsumer
     */
    public synchronized void removeConsumer(ImageConsumer ic) {
  if (proxies != null) {
      ImageFilter imgf = (ImageFilter) proxies.get(ic);
      if (imgf != null) {
    src.removeConsumer(imgf);
    proxies.remove(ic);
    if (proxies.isEmpty()) {
        proxies = null;
View Full Code Here

Examples of java.awt.image.ImageFilter

     */
    public void startProduction(ImageConsumer ic) {
  if (proxies == null) {
      proxies = new Hashtable();
  }
  ImageFilter imgf = (ImageFilter) proxies.get(ic);
  if (imgf == null) {
      imgf = filter.getFilterInstance(ic);
      proxies.put(ic, imgf);
  }
  src.startProduction(imgf);
View Full Code Here

Examples of java.awt.image.ImageFilter

     *
     * @see ImageConsumer
     */
    public void requestTopDownLeftRightResend(ImageConsumer ic) {
  if (proxies != null) {
      ImageFilter imgf = (ImageFilter) proxies.get(ic);
      if (imgf != null) {
    imgf.resendTopDownLeftRight(src);
      }
  }
    }
View Full Code Here

Examples of java.awt.image.ImageFilter

                    // use grey as an index into the colormap;
                    spectrogram.setRGB(i, maxYIndex - j, cmap.getColor(grey));
                }
            }

            ImageFilter scaleFilter =
                new ReplicateScaleFilter((int) (zoom * width), (int)(vzoom*height));
            scaledSpectrogram =
                createImage(new FilteredImageSource(spectrogram.getSource(),
                                                    scaleFilter));
            Dimension sz = getSize();
View Full Code Here

Examples of java.awt.image.ImageFilter

           
            // do the zooming
            width = (int) (zoom * width);
            height = (int)(vzoom*height);

            ImageFilter scaleFilter =
                new ReplicateScaleFilter(width, height);
            scaledSpectrogram =
                createImage(new FilteredImageSource(spectrogram.getSource(),
                                                    scaleFilter));

View Full Code Here

Examples of java.awt.image.ImageFilter

      return null;
    }

    // Get the colorizing filter
    int[] targetColors = _getTargetColors(requestedProperties);
    ImageFilter filter = new ColorizingFilter(_SOURCE_COLORS, targetColors);

    Toolkit toolkit = Toolkit.getDefaultToolkit();
    ImageProducer producer = icon.getSource();

    // If direction is RTL, flip the source image
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.