|
@@ -52,12 +52,6 @@ public class Image2Zpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public static String image2Zpl2(BufferedImage image) throws Exception{
|
|
|
-
|
|
|
- File file = new File("d://a2.jpg");
|
|
|
- OutputStream out = new FileOutputStream(file);
|
|
|
- ImageIO.write(image, "jpg", out);
|
|
|
- out.close();
|
|
|
-
|
|
|
//获取图片的字节数组
|
|
|
DataBufferByte data=(DataBufferByte) getBinaryGrayImage(image).getRaster().getDataBuffer();
|
|
|
byte[] imgData=data.getData();
|