报错he constructor GrayFilter() is undefined如何改?问题小白,新手请谅解
publicclassimagessextendsJFrame{Imagesource,gray,gray3,clip,bigimg;BufferedImagebimg,...
public class imagess extends JFrame
{
Image source,gray,gray3,clip,bigimg;
BufferedImage bimg,gray2;
GrayFilter filter,filter2;
ImageIcon ii;
ImageFilter cropFilter;
int iw,ih;
public void GrayImage() {
ii=new ImageIcon ("F:\\weiwenling\\untitled3.jpg");
source=ii.getImage();
iw=source.getWidth(this);
ih=source.getHeight(this);
filter=new GrayFilter();
filter2=new GrayFilter(GrayModel.CS_FLOAT); 展开
{
Image source,gray,gray3,clip,bigimg;
BufferedImage bimg,gray2;
GrayFilter filter,filter2;
ImageIcon ii;
ImageFilter cropFilter;
int iw,ih;
public void GrayImage() {
ii=new ImageIcon ("F:\\weiwenling\\untitled3.jpg");
source=ii.getImage();
iw=source.getWidth(this);
ih=source.getHeight(this);
filter=new GrayFilter();
filter2=new GrayFilter(GrayModel.CS_FLOAT); 展开
1个回答
2016-07-22
展开全部
GrayFilter(); 应该是你这个构造函数没有定义, 添加一个没有参数的构造函数就可以了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询