JLabel img=new JLabel(){
protected void paintComponent(Graphics g) {
ImageIcon icon = new ImageIcon(mypath+filelist[myi]);
g.drawImage(icon.getImage(), 0, 0, (int)(getWidth()*1.0),(int)(icon.getIconHeight()*(getWidth()*1.0)/icon.getIconWidth()),
icon.getImageObserver());
}
};
而我图片实际是特别清晰的,图片是直接从PDF转换过来的
试了很多方法,都没有效果,各位大佬有没有比较好的办法让图片清晰的显示出来,求教啊