Page 1 of 1

Branding a picture with a logo.gif (with transparency)

Posted: Thu Nov 20, 2003 4:40 pm
by Mario
Hi,

I have a online picture gallery. Now, I want to brand my pictures with my logo at the right bottom. The logo is a circle with some letters inside and the background around this circle is transparent, so I save the logo as logo.gif.
Is it possible to load the picture and the logo.gif and merge them and preserve the transparency of the logo ?
For now I load the gif file and then I have to change the color depth, otherwise the gflMerge returns "invalid paramater:
gflChangeColorDepth( logo, NULL, GFL_MODE_TO_RGB, 0);

I also tried it with GFL_MODE_TO_RGBA to preserve the alpha channel, but the logo is always merged as a rectangle with the circle logo on the picture.

Please help me,
Mario

Re: Branding a picture with a logo.gif (with transparency)

Posted: Sat Nov 22, 2003 12:05 pm
by xnview
hi,
Mario wrote:Is it possible to load the picture and the logo.gif and merge them and preserve the transparency of the logo ?
It's not yet possible. I must add a feature like that!
For now I load the gif file and then I have to change the color depth, otherwise the gflMerge returns "invalid paramater:
gflChangeColorDepth( logo, NULL, GFL_MODE_TO_RGB, 0);
Yes, gflMerge use same Type bitmap.
Regards. Pierre.

Posted: Thu May 06, 2004 1:43 pm
by lazerfisk
That would be sweet, and especially if you could apply alpha on it. For example merge a PNG with alpha channel (for softened edges and other nice effects) with an underlying image while making the overlayed image semi-transparent as well...

I look forward to seing this function in GflAx :)

Posted: Wed Jul 14, 2004 8:29 am
by Guest
Hi! is it now included to the latest version??

Posted: Thu Jul 15, 2004 7:35 am
by xnview
Anonymous wrote:Hi! is it now included to the latest version??
Yes, you have gflBitbltEx in GFL SDK, and DrawImage in GFLAx
Pierre.

example?

Posted: Fri Sep 03, 2004 2:12 pm
by BlackBurn
Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.

Re: example?

Posted: Thu Sep 09, 2004 7:42 am
by xnview
BlackBurn wrote:Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
GFL SDK or GFLAX?
Pierre.

Re: example?

Posted: Thu Sep 09, 2004 8:26 am
by BlackBurn
xnview wrote:
BlackBurn wrote:Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
GFL SDK or GFLAX?
Pierre.
With GFLAX, merging works fine, but it should be cool if it is possible to put an logo on a image, where both images have no opacity.

for example, you have an image 640*480 and a logo 100*50 and that logo you want to have in the left corner, but both pictures must be visible for 100%.

transpercy support from gif or png, should be real cool, but not neccesary. I can always make an logo in square shape :)

Posted: Wed Jan 12, 2005 4:19 pm
by Guest
A smooth kick :)

Has someone any idea how to get this working as I describe above, if it is possible.

Re: example?

Posted: Wed Jan 12, 2005 8:58 pm
by xnview
BlackBurn wrote:
xnview wrote:
BlackBurn wrote:Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
GFL SDK or GFLAX?
Pierre.
With GFLAX, merging works fine, but it should be cool if it is possible to put an logo on a image, where both images have no opacity.

for example, you have an image 640*480 and a logo 100*50 and that logo you want to have in the left corner, but both pictures must be visible for 100%.

transpercy support from gif or png, should be real cool, but not neccesary. I can always make an logo in square shape :)
Please contact me, and i'll send you a new version (with good DrawImage).