Examples of ImageFilter


Examples of ae.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 chatroom.utils.ImageFilter

        profilePic.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                JFileChooser imageChooser = new JFileChooser();
                imageChooser.setFileFilter(new ImageFilter());
                imageChooser.setAccessory(new ImagePreview(imageChooser));
                int ret = imageChooser.showOpenDialog(ClientGUI.this);
                if (ret == JFileChooser.APPROVE_OPTION) {
                    File f = imageChooser.getSelectedFile();
                    changeProfilePic(f);
View Full Code Here

Examples of com.dotmarketing.image.filter.ImageFilter

      for(String s : filter){
        String clazz =null;
        try {
          clazz ="com.dotmarketing.image.filter." + s + "ImageFilter";
          Class<ImageFilter> iFilter = (Class<ImageFilter>) Class.forName( clazz );
          ImageFilter i=  iFilter.newInstance();
          file = i.runFilter(file,   parameters);
        } catch (ClassNotFoundException e) {
          Logger.error(ImageFilterExporter.class, "Unable to instanciate : " +  clazz );
        } catch (InstantiationException e) {
          Logger.error(ImageFilterExporter.class, "InstantiationException : " +  clazz );
        } catch (IllegalAccessException e) {
View Full Code Here

Examples of com.google.code.appengine.awt.image.ImageFilter

            if ((srcX != 0) || (srcY != 0)
                    || (srcWidth != image.getWidth(observer))
                    || (srcHeight != image.getHeight(observer))) {
                // crop the source image
                ImageFilter crop = new CropImageFilter(srcX, srcY, srcWidth,
                        srcHeight);

                throw new UnsupportedOperationException();
//                image = Toolkit.getDefaultToolkit().createImage(
//                        new FilteredImageSource(image.getSource(), crop));
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.image.ImageFilter

    public abstract int getWidth(ImageObserver observer);

    public abstract int getHeight(ImageObserver observer);

    public Image getScaledInstance(int width, int height, int hints) {
        ImageFilter filter;
        if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
            filter = new AreaAveragingScaleFilter(width, height);
        } else {
            filter = new ReplicateScaleFilter(width, height);
        }
View Full Code Here

Examples of com.lowagie.toolbox.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 com.lowagie.toolbox.arguments.filters.ImageFilter

  /**
   * Constructs a KnitTiff object.
   */
  public KnitTiff() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "odd", "The tiff file with the odd pages", false, new ImageFilter(false, false, false, false, false, true)));
    arguments.add(new FileArgument(this, "even", "The tiff file with the even pages", 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()));
  }
View Full Code Here

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

     * @param tool  the tool that needs this argument
     * @param name  the name of the argument
     * @param description  the description of the argument
     */
    public ImageArgument(AbstractTool tool, String name, String description) {
        this(tool, name, description, new ImageFilter());
    }
View Full Code Here

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

  /**
   * Constructs a KnitTiff object.
   */
  public KnitTiff() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "odd", "The tiff file with the odd pages", false, new ImageFilter(false, false, false, false, false, true)));
    arguments.add(new FileArgument(this, "even", "The tiff file with the even pages", 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()));
  }
View Full Code Here

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

   * @param tool  the tool that needs this argument
   * @param name  the name of the argument
   * @param description  the description of the argument
   */
  public ImageArgument(AbstractTool tool, String name, String description) {
    this(tool, name, description, new ImageFilter());
  }
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.