PDA

View Full Version : Cannot get overlay transparancy working


zboyet
06-21-2006, 02:37 AM
It seems support is pretty poor (which is sad for a program that costs $2500) so I am not holding my breath on an official reply but here goes.

Here is what I have for the watermark

//Overlay watermark
$over_pos_x = '30';
$over_pos_y = '100';
//RGB settings for the mask to erase background
$rgb_r = '139';
$rgb_g = '139';
$rgb_b = '139';
overlay_options_SetUseOverlay($h, '1');
overlay_options_SetOverlayPath($h, $overlay_file);
overlay_options_SetOverlayPosition($h, '4', $over_pos_x, $over_pos_y);
overlay_options_SetMaskPixelRGB ($h, $rgb_r, $rgb_g, $rgb_b);

It sets the watermark fine but will not set the mask pixel and make the background of the overlay transparent. It does not even work on the official sample file (which I had to fix because it called overlay_options_SetMaskPixelXY when it should have been overlay_options_SetMaskPixelRGB). Is this a bug because I just don't see what I am doing wrong.