Examples of ColorConvertOp


Examples of java.awt.image.ColorConvertOp

    if (!enabled) {
      if (!this.htImage.contains(this.getName(name, enabled))) {
        BufferedImage img = this.htImage.get(name);
       
        ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
        ColorConvertOp op = new ColorConvertOp(cs, null);
       
        BufferedImage result = op.filter(img , null);
       
        this.htImage.put(this.getName(name , enabled) , result);
      }
      name = this.getName(name , enabled);
    }
View Full Code Here

Examples of java.awt.image.ColorConvertOp

    if (!enabled) {
      if (!this.htImage.contains(this.getName(name, enabled))) {
        BufferedImage img = this.htImage.get(name);
       
        ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
        ColorConvertOp op = new ColorConvertOp(cs, null);
       
        BufferedImage result = op.filter(img , null);
       
        this.htImage.put(this.getName(name , enabled) , result);
      }
      name = this.getName(name , enabled);
    }
View Full Code Here

Examples of java.awt.image.ColorConvertOp

  protected JCommandButton createActionButton(CommandButtonDisplayState state) {
    JCommandButton mainButton = new JCommandButton(resourceBundle
        .getString("Paste.text"), new edit_paste());
    mainButton.setDisabledIcon(new FilteredResizableIcon(new edit_paste(),
        new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY),
            null)));
    mainButton.setExtraText(resourceBundle.getString("Paste.textExtra"));
    mainButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println(stamp() + ": Main paste");
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.