开发者

Is it possible to combine two jpeg file? if yes then how? [closed]

开发者 https://www.devze.com 2023-04-12 19:58 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消