摘要
针对PNG文件格式的特点,提出了一种压缩PNG图像的算法。算法将所有图像处理后打包成.aim文件,特点是简单易于实现,在使用时.aim文件的格式灵活多变,保密性强。实验表明,在保证PNG图像质量不受影响的前提下,将PNG图像在jar包中的大小减小了14.59%,从J2ME程序读取PNG的速度也优于J2ME提供Image.creatImage()的方法。
According to the characteristic of PNG format image, proposes an algorithm of PNG image compression. The algorithm joins all PNG images to a .aim format file and compresses them. Experiment shows, PNG images are 14.59% smaller in the .jar file without reducing the PNG images' qualities, the extract speed in J2ME program is faster than the Image.creatImage( ) method that J2ME provides.
出处
《现代计算机》
2007年第5期56-58,共3页
Modern Computer
关键词
PNG
压缩
J2ME
.aim
PNG(Portable Network Graphic)
Image Compression
J2ME
.aim