⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 negativeeffect.java~1~

📁 这是各类实用工具的源码100例
💻 JAVA~1~
字号:
package jvideodemo2;import javax.media.*;import javax.media.Effect;import javax.media.format.*;import javax.media.Buffer;import javax.media.ResourceUnavailableException;public class NegativeEffect implements Effect {  private static String EffectName = "NegativeEffect";  protected RGBFormat inputFormat;  protected RGBFormat outputFormat;  protected Format[] supportedInputFormats;  protected Format[] supportedOutputFormats;  public NegativeEffect() {    supportedInputFormats = new Format[]{      new RGBFormat()      };    supportedOutputFormats = new Format[]{      new RGBFormat()      };  }  public Format[] getSupportedInputFormats() {    /**@todo Implement this javax.media.Codec method*/    throw new java.lang.UnsupportedOperationException("Method getSupportedInputFormats() not yet implemented.");  }  public Format[] getSupportedOutputFormats(Format parm1) {    /**@todo Implement this javax.media.Codec method*/    throw new java.lang.UnsupportedOperationException("Method getSupportedOutputFormats() not yet implemented.");  }  public Format setInputFormat(Format parm1) {    /**@todo Implement this javax.media.Codec method*/    //throw new java.lang.UnsupportedOperationException("Method setInputFormat() not yet implemented.");    System.out.println("setInputFormat [input = "+parm1+"]");    inputFormat = (RGBFormat)parm1;    return (Format)inputFormat;  }  public Format setOutputFormat(Format parm1) {    /**@todo Implement this javax.media.Codec method*/    //throw new java.lang.UnsupportedOperationException("Method setOutputFormat() not yet implemented.");    System.out.println("setOutputFormat [ output = "+parm1+"]");    o  }  public int process(Buffer parm1, Buffer parm2) {    /**@todo Implement this javax.media.Codec method*/    throw new java.lang.UnsupportedOperationException("Method process() not yet implemented.");  }  public String getName() {    /**@todo Implement this javax.media.PlugIn method*/    throw new java.lang.UnsupportedOperationException("Method getName() not yet implemented.");  }  public void open() throws javax.media.ResourceUnavailableException {    /**@todo Implement this javax.media.PlugIn method*/    //throw new java.lang.UnsupportedOperationException("Method open() not yet implemented.");    System.out.println("open");  }  public void close() {    /**@todo Implement this javax.media.PlugIn method*/    //throw new java.lang.UnsupportedOperationException("Method close() not yet implemented.");    System.out.println("close");  }  public void reset() {    /**@todo Implement this javax.media.PlugIn method*/    //throw new java.lang.UnsupportedOperationException("Method reset() not yet implemented.");    System.out.println("reset");  }  public Object[] getControls() {    /**@todo Implement this javax.media.Controls method*/    //throw new java.lang.UnsupportedOperationException("Method getControls() not yet implemented.");    System.out.println("getControls");    return new Controls[0];  }  public Object getControl(String parm1) {    /**@todo Implement this javax.media.Controls method*/    //throw new java.lang.UnsupportedOperationException("Method getControl() not yet implemented.");    System.out.println("getControl [controlType = "+parm1+"]");    try{      Class cls = Class.forName(parm1);      Object[] cs = this.getControls();      for (int i=0;i<cs.length;i++){        if (cls.isInstance(cs[i])){          return cs[i];        }      }      return null;    }catch(Exception err){      return null;    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -