You need to create a background bitmap.
set the pixelformat := pf24bit;
deside on a mask color. lets say its $00FFFFFF; because most don't use
white for their art work in fonts.
you rease the image with this mask color by setting the brush.color.
fill the background with this color.
then apply your fonts, images ect on this layer and not using the mask
color.
when you are ready to apply this as the water mark you can then
scan the image converting it into a B&W image except for the brush
color.
reading the RGB values and converting them as so.
Sum := Trunc(R := R*0.30+ (G :=G*0.59) +( B := B*0.11);
If Sum = $00FFFFFF then Dec(Sum); // make sure you don't have Brush
color.
the reset the pixel that you just read.
canvas.Pixels[x,y] := RGB(Sum,Sum,Sum);
this will give you a nice B&W shade that now can be used as a scale for
your
color shades in your image.
when your ready you scan your color image and water Mark image.
use one of the 2 values which will all be the same from the mask image
R,G or b
as the scaling factor R/255 for example * each R,G,B of your color
image to
change the intensity..
etc..
i am sure you get the idea..
Quote
Noel wrote:
> I am trying to 'watermark' images by superimposing a font on top of
> the image, filled with a lightened version of the image behind the
> font. Can anyone provide any pointers as to how I might go about
> doing this?
> Thanks,
> Noel