
December 12th, 2003, 09:45 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Location: Melbourne, Australia
Posts: 97
Time spent in forums: 23 m 33 sec
Reputation Power: 6
|
|
GD image tranceparency
In the following you can get an idea what i hm tring to achieve

I have put a grid on an image, using the following code:
PHP Code:
$colorGrey=imagecolorallocate($grid_image, 192, 192, 192);
for ($i=1; $i<52; $i++){
$grid_space = 10;
imageline($grid_image, $i*$grid_space , 0, $i*$grid_space , 350, $colorGrey);
imageline($grid_image, 0, $i*$grid_space , 520, $i*$grid_space , $colorGrey);
}
This creates the grid lines only, but as you can see the black image lines get covered by the grey grid lines. is there a way i can make the color black the dominent color, so it will appear on top of the grey grid lines?
__________________
regards,
Fulton
|