Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 13299
Status: resolved
Priority: 0/
Queue: GD

Owner: Nobody in particular
Requestors: handianfei99 [...]

Bug Information
Severity: (no value)
Broken in: 2.19
Fixed in: (no value)

Subject: Problem with dashedLine()
Download (untitled) / with headers
text/plain 595b
GD 2.19 perl 5.8.4 Also problematic with 2.23 #!/usr/bin/perl # Seems to be a bug with the dashedLine func # use GD; $width= 512; $height = 512; $im = new GD::Image($width, $height); # allocate some colors $white = $im->colorAllocate(255,255,255); $green = $im->colorAllocate(0,255, 0); $red = $im->colorAllocate(255,0,0); $blue = $im->colorAllocate(0,0,255); #$im->dashedLine(100, 50, 300, 51, $green); $im->dashedLine(300, 45, 200, 44, $green); # this line turns out to be a box!!! $png_data = $im->png; open (FILE, ">testGD.png") || die; binmode FILE; print FILE $png_data; close FILE;
Download (untitled) / with headers
text/plain 248b
This method is deprecated in libgd and apparently is broken in newer versions of the library. All that GD does is to pass the call to the C layer, so there's nothing I can do to fix this. You should use setStyled() and gdStyled as alternatives.
Download (untitled) / with headers
text/plain 114b
I should have mentioned that the method will be formally marked deprecated-do not use in the next version of GD.
Was deprecated with 2.27

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to