|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-06 03:44 UTC] derick@php.net
[2001-07-06 03:45 UTC] derick@php.net
[2001-07-06 04:53 UTC] kyhm at kyhm dot com
[2001-07-06 07:44 UTC] wez@php.net
[2001-07-06 07:50 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Using PHP 4.0.6, GD 2.0.1, Apache 1.3.19, and a TrueColor image, this code: $img = imageCreateTrueColor (64, 64); $wht = imageColorAllocate ($img, 255, 255, 255); imageFill ($img, 0, 0, $wht); $red = imageColorAllocate ($img, 255, 0, 0); $x1 = 16; $y1 = 16; $x2 = 48; $y2 = 48; imageDashedLine ($img, $x1, $y1, $x1, $y2, $red); imageDashedLine ($img, $x1, $y1, $x2, $y2, $red); imageDashedLine ($img, $x1, $y1, $x2, $y1, $red); imageDashedLine ($img, $x2, $y2, $x1, $y2, $red); imageDashedLine ($img, $x1, $y2, $x2, $y1, $red); imageDashedLine ($img, $x2, $y1, $x2, $y2, $red); header ("Content-type: image/png"); imagePNG ($img); Should produce a red square with diagonal lines. Instead it produces only the vertical lines, in a PNG found at http://www.kyhm.com/gd/dashedline.png Configure line: ./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/etc/httpd --enable-openssl=/usr/local --with-gd=/usr/local --with-jpeg-dir=/usr --with-tiff-dir=/usr --with-zlib=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-freetype-dir=/usr/local --with-t1lib=/usr/local --with-mysql=/usr/local --with-pdflib --with-pgsql --enable-readline=/usr --enable-trans-sid --enable-sockets --enable-memory-limit --enable-shared --with-mcrypt=/usr/local --enable-ctype --enable-bcmath --enable-ftp --enable-shmop