Search found 6 matches

by submarine
Thu May 03, 2007 10:34 am
Forum: Plugin: (Network Weather Map)
Topic: Weathermap Editor 0.9 Problem
Replies: 35
Views: 32089

iharvey wrote:Tested and working - good job!
Thanks ! :D
by submarine
Thu May 03, 2007 9:41 am
Forum: Plugin: (Network Weather Map)
Topic: Weathermap Editor 0.9 Problem
Replies: 35
Views: 32089

Hi. I've been busy with that alpha. So I tried to replace the following code : // create an image of that size and draw into it $node_im=imagecreatetruecolor($bbox_x2 - $bbox_x1 , $bbox_y2 - $bbox_y1 ); imageSaveAlpha($node_im, true); // ImageAlphaBlending($node_im, true); $nothing=imagecolorallocat...
by submarine
Thu May 03, 2007 1:57 am
Forum: Plugin: (Network Weather Map)
Topic: Weathermap Editor 0.9 Problem
Replies: 35
Views: 32089

One could replace the half-red color by magenta :

Code: Select all

$nothing=imagecolorallocate($node_im, 255, 0, 255); 
I doubt there are a lot of images/icons using that one. :wink:
by submarine
Wed May 02, 2007 5:57 pm
Forum: Plugin: (Network Weather Map)
Topic: Weathermap Editor 0.9 Problem
Replies: 35
Views: 32089

Sementation fault and transparency

It seems I've resolved the problem here. I've replaced the following lines (in the original source code) in Weathermap.class.php : $nothing=imagecolorallocatealpha($node_im, 128, 0, 0,127); imagefill($node_im, 0, 0, $nothing); by this one to enable transparency : $nothing=imagecolorallocate($node_im...
by submarine
Wed May 02, 2007 10:18 am
Forum: Plugin: (Network Weather Map)
Topic: Weathermap Editor 0.9 Problem
Replies: 35
Views: 32089

Segmentation fault

The function imagecolorallocatealpha behaves identically to imagecolorallocate() with the addition of the transparency parameter alpha.
So, once you use the imagecolorallocate function, there's no more transparency, sorry. :(
by submarine
Wed May 02, 2007 9:46 am
Forum: Plugin: (Network Weather Map)
Topic: Weathermap Editor 0.9 Problem
Replies: 35
Views: 32089

Segmentation fault problem

Hi all. I've tried to replace the faulty function in Weathermap.class.php :

$nothing=imagecolorallocatealpha($node_im,128,0,0,127);

by this one :

$nothing=imagecolorallocate($node_im, 255, 0, 0);

And it works : no more segmentation fault ! :D
I Hope this help. Hi to ZeBoy if he's reading this. ;-)