Hello,
I am trying to figure out how to write a watermark text on an image I load. Would a simple textout do the job? I don't have experience in manipulating pixel data, so can somebody help me?
Thanks a lot
Hello,
I am trying to figure out how to write a watermark text on an image I load. Would a simple textout do the job? I don't have experience in manipulating pixel data, so can somebody help me?
Thanks a lot
eh, using the plain old adding text to an image isnt going to do it for copyright, what you are looking for is steganography, where you actually plant data INTO the image , such as a copyright notice, instructions for a nuclear bomb,etc.
Adobe Photoshop (if you have it 'cause it costs a fortune) has the feature to add watermark.
source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense
I don't care about adobe, I need to make a program so that it can take all pictures in a directory and add a specific watermark on 0,0 at the image, a string.
Y3K Network http://www.y3knetwork.com
Bringing the software of the future on the net.
What sort of answer are you looking for?
Hard to imagine how you can write a program which doesn't involve pixel manipulation, but which does add a watermark to an image.
Unless you're hoping for some magical API call which does it all for you
Try GIMP (or free adobe). It has scripting facilities, so once you finally figure out what it is you want to do, then automating it would not be too difficult.Code:void watermark( const char *filename, int x, int y, const char *text ); int main ( int argc, char *argv[] ) { watermark( argv[1], 0, 0, argv[2] ); }
In fact, how about this
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
You'll need an image manipulation library. Depending on your OS/Compiler and the format of the images you may already have one capable of your needs. Otherwise, you can grab one from the web.
http://www.imagemagick.org/index.html?
http://www.boutell.com/gd/
http://www.radix.net/~cknudsen/Ilib/
http://www.google.com/search?q=image+library+c
http://directory.google.com/Top/Comp...ics/Libraries/
http://www.google.com/search?q=image...+site%3Asf.net
GDI+ (MSVC only)