j2me - 如何创建图像JPG格式? [英] j2me - How to create image in jpg format?
问题描述
我的j2me应用程序必须拍摄照片,编辑一点,并保存到某个地方(或发送到服务器)。
相机以jpg格式返回一个图像的字节,但是在我使用 Image.createImage()
创建一个Image对象后,我无法打包它回到jpg。
My j2me application must take a photo, edit it a little and save it somewhere (or send to server).
Camera return me bytes of an image in jpg format, but after I create an Image object from it (using Image.createImage()
), I could not pack it back to jpg.
j2me有jpeg编码器吗?
我发现一个用j2se编写的,但它使用j2se特定的类。
Is there any jpeg encoders for j2me?
I found one written in j2se, but it uses j2se-specific classes.
推荐答案
,因为JSR 234不支持在许多设备上,我采取Sun的JIMI图像库和端口JPEG编码部分到j2me。它工作正常,不使用太多的内存。
By the way, since JSR 234 is not supporting on many devices, I take Sun's JIMI image library and port JPEG-encoding part to j2me. It works fine and doesn't use too much memory.
这篇关于j2me - 如何创建图像JPG格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!