Watermarking

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Watermarking

Post by dominique »

Hi GFLSDK programers !

I don't know how to do water marking and if it's difficult to implement.
Should it be possible to add this kind of skill in GFL?

Rgds
Dom
User avatar
xnview
Author of XnView
Posts: 44325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Watermarking

Post by xnview »

You have gflBitBlt :-)
Pierre.
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique »

Ok, if you told me it's possible using this function, I think I can do what I want as usual ;)
I'll give some news about this.
Dom
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique »

And what is the difference between gflBitblt and gflBitbltEx ?
Maybe the second one change the alpha channel too ?
I'll search some information about invisible watermarking... if someone knows about this ;)
Dom
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique »

Ok, I can merge a png with a RGB image using gflBitbltEx.
I try to do the same for greylevel images using gflBitblt and TransparentIndex without success. What is exactly TransparentIndex?
Thx,
Dom
User avatar
xnview
Author of XnView
Posts: 44325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

TransparentIndex is used as transparent index for picture with colormap
Pierre.
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique »

Do you have something to do transparency merging with greyscale images?
I wrote something that works fine but I prefer to use gfl functions.
Dom
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique »

I use gflAddText. I'd like to add transparency to the text.
Is it possible to add this feature using the alpha channel of the text color?
Is there any function to get the text's size given a selected font (gflGetTextRect)?
Rgds
Dom
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique »

Up for next version :)
Dom