I am trying to combine two jpeg file in my application and make it one Jpeg file. By Googling i got many exampl开发者_开发知识库e. but all example works with the bitmap image so I'm helpless.
I am using one jpeg image that is captured by the camera and the Second one is available in my drawable dir. Any idea how to do this? If is it possible then please give me some code to implement it. Thanks.
you can use jpeg.dll to decompress/compress jpeg images. without decompressing, you can't make any changes/additions on jpeg images.
steps are:
1) read and decompress jpeg files
2) do changes on uncompressed RGB buffers
3) compress as jpeg and save file
edit: I missed it was Android platform. For Android platform you need to use its SDK like the link below:
http://code.google.com/p/jjil/source/browse/trunk/JJIL-Android/src/jjil/android/RgbImageAndroid.java?r=282
Check this post for Combining two images and stores in SDcard :
Combining Images
精彩评论