Android GIMP JPG to PPM conversion

放肆的年华 提交于 2020-01-05 02:33:20

问题


How exactly does GIMP convert a jpg into a ppm? I'm trying to convert a jpg to a ppm on Android. In Android I use the API to create an ARGB_8888 Bitmap of the jpg then drop the Alpha channel and throw the RGB values into a ppm. But I get different values for RGB from GIMP.


回答1:


Have a look into the code. You can find it here: http://git.gnome.org/browse/gimp/tree/plug-ins/common/file-pnm.c



来源:https://stackoverflow.com/questions/4908635/android-gimp-jpg-to-ppm-conversion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!