Thanks !iharvey wrote:Tested and working - good job!
Search found 6 matches
- Thu May 03, 2007 10:34 am
- Forum: Plugin: (Network Weather Map)
- Topic: Weathermap Editor 0.9 Problem
- Replies: 35
- Views: 32089
- 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...
- 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 :
I doubt there are a lot of images/icons using that one.
Code: Select all
$nothing=imagecolorallocate($node_im, 255, 0, 255);
- 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...
- 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.
So, once you use the imagecolorallocate function, there's no more transparency, sorry.
- 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 !
I Hope this help. Hi to ZeBoy if he's reading this.
$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 !
I Hope this help. Hi to ZeBoy if he's reading this.