ImageIcon img= new ImageIcon("d:/test.jpg");
int w = img.getIconWidth();
int h = img.getIconHeight();
java获得图片的像素
最新推荐文章于 2021-08-31 17:54:28 发布
ImageIcon img= new ImageIcon("d:/test.jpg");
int w = img.getIconWidth();
int h = img.getIconHeight();