Home »
Imported messages »
comp.lang.php »
Draw some simple rectangles?
Draw some simple rectangles? [message #178716] |
Mon, 23 July 2012 20:25  |
Christopher M.
Messages: 9 Registered: March 2012
Karma: 0
|
Junior Member |
|
|
I'd like to draw some simple rectangles--maybe have some text and a 7x5
(dimensions) rectangle beside it.
Is there an easy way to do this, or should I just create some images?
W. Pooh (AKA Winnie P.)
|
|
|
|
|
|
|
Re: Draw some simple rectangles? [message #178721 is a reply to message #178716] |
Tue, 24 July 2012 00:12  |
Chuck Anderson
Messages: 63 Registered: September 2010
Karma: 0
|
Member |
|
|
Christopher M. wrote:
> I'd like to draw some simple rectangles--maybe have some text and a 7x5
> (dimensions) rectangle beside it.
>
Use GD lib. It should be pretty easy with this:
http://www.php.net/manual/en/function.imagerectangle.php
Or even easier, Google his phrase "GD lib draw rectangle tutorial".
> Is there an easy way to do this, or should I just create some images?
>
Probably simpler, but learning how to use GD lib is also a worthwhile
activity - and you can then make different sized rectangles on the fly.
>
> W. Pooh (AKA Winnie P.)
>
>
>
--
*****************************
Chuck Anderson • Boulder, CO
http://cycletourist.com
Turn Off, Tune Out, Drop In
*****************************
|
|
|
Goto Forum:
Current Time: Thu Apr 10 18:13:40 GMT 2025
Total time taken to generate the page: 0.04420 seconds