⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 call.java

📁 基于J2ME的JPEG decode和encode
💻 JAVA
字号:
File_Single tempBF = new File_Single(this, "file:///" + formatFileAdd(tempP.address), Connector.READ);
bigImageData = tempBF.readFile();
tempBF.close();
tempBF = null;	//获得文件数据

JPGencode = new File_Image_To_JPG();
JPGencode.JPEGEncoder(80);	//设定编码质量
byte[] thumbnailImage = null;	//缩略图数据
JPGdecode = new File_JPEG_To_Image(this, bigImageData, dir/*旋转方向*/, 
																		false/*是否缩放*/, 0/*缩放宽*/, 0/*缩放高*/, false/*是否失真*/, 
																		JPGencode, thumbnailImage);
																		//解码+编码,直接得到JPG数据
bigImageData = null;
JPGdecode.close();
JPGdecode = null;
JPGencode.close();
JPGencode = null;
System.gc();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -