Alphablend one image over other...

Ruturaaj
09-14-2009, 01:06 PM
Hello All,

I need your help! Currently I'm working on a project in which I need to implement a functionality which will put a transparent GIF file on a JPG file and then save this new image as JPG file to a new folder. The purpose of this project is to create a tool that will put a Logo in bottom right corner of each Photo.

No issues with loading and saving JPG files; but I'm not able to put the transparent GIF image over a JPG image. I do it this way ...

1. Load GIF image in a picture box - 1.
2. Load JPG image in a picture box - 2.
3. Use Alphablend to paint GIF in the bottom right corner in picture box -2.
4. PictureBox2.Picture = PictureBox2.Image
5. SavePicture PictureBox2.Picture.

Here, the Alphablend is not maintaining the transparency of of GIF. What should I do here? I'm not sure if the way I'm doing it is correct or not. Please help me to achieve the desired result.

Eagerly waiting for your reply ...

Best Regards,

Ruturaaj.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum