• 2024-08-15java 截取电脑屏幕转为图片
    importjavax.imageio.ImageIO;importjava.awt.*;importjava.awt.image.BufferedImage;importjava.io.File;importjava.io.IOException;publicstaticvoidmain(String[]args){//创建JMapViewer实例//JMapViewermapViewer=newJMapViewer();