I try to create an watermark image from the the origin image and an logo.
The image are all in the 'JPEG' format.
Can you help me please!!!
Thanks
I think you're going to need to give more info. I for one have no idea
what you mean (please don't take that the wrong way). What are you
trying to do exactly, and what is the problem?
You will need to read in the image, convert it to a GWorld via something
like DecompressImage(), draw on it to your little heart's content with
what ever you want, then convert it back to a JPEG with CompressImage(),
and finally write it back out to disk (either to a new file, or
overwrite the existing).
An experienced Mac developer should be able to do this in a day or so,
as it's all pretty standard stuff. Years ago I worked on a Photoshop
plugin that did watermarking, so the I/O and conversion was handled for
us.
> You will need to read in the image, convert it to a GWorld via something
> like DecompressImage(), draw on it to your little heart's content with
> what ever you want, then convert it back to a JPEG with CompressImage(),
> and finally write it back out to disk (either to a new file, or
> overwrite the existing).
To actually do the watermark, you can do a CopyBits() from the logo
GWorld to the JPEG's GWorld, using the blend, addPin, or subPin transfer
modes, with the amount of ghosting of the logo GWorld given by the
OpColor() RGBColor.