Connecting Tech Pros Worldwide Help | Site Map

using a pattern to fill a rectangle

  #1  
Old March 27th, 2008, 10:25 PM
Sidney Diab
Guest
 
Posts: n/a



Hi,

Using php I'm trying to draw a goban (size may vary, let's consider
500x500) : I know I can use 'imageFilledRectangle' but I want a nice
wooden texture (let's consider 100x100).

How could you do it ?

TIA.


  #2  
Old March 28th, 2008, 06:25 PM
Nick Wedd
Guest
 
Posts: n/a

re: using a pattern to fill a rectangle


In message <1277536.1tRbDXSDaS@sd>, Sidney Diab
<diab.sidney@free.fr.invalidwrites
Quote:
>
>Using php I'm trying to draw a goban (size may vary, let's consider
>500x500) : I know I can use 'imageFilledRectangle' but I want a nice
>wooden texture (let's consider 100x100).
>
>How could you do it ?
I would go to http://www.britgo.org/ and grab their background image.

If you had used a valid email address here, I would have sent you a
couple of other possible images.

Nick
--
Nick Wedd nick@maproom.co.uk
  #3  
Old March 28th, 2008, 07:25 PM
The Natural Philosopher
Guest
 
Posts: n/a

re: using a pattern to fill a rectangle


Nick Wedd wrote:
Quote:
In message <1277536.1tRbDXSDaS@sd>, Sidney Diab
<diab.sidney@free.fr.invalidwrites
Quote:
>>
>Using php I'm trying to draw a goban (size may vary, let's consider
>500x500) : I know I can use 'imageFilledRectangle' but I want a nice
>wooden texture (let's consider 100x100).
>>
>How could you do it ?
>
I would go to http://www.britgo.org/ and grab their background image.
>
If you had used a valid email address here, I would have sent you a
couple of other possible images.
>
Nick
Do what I did. I stuck a sheet of planed wood on my scanner, and scanned
it in.

My wife worked some miracles with photoshop, and a website now has
authentic 'solid wood' lettering harhar.

If you store the image at say 500x500 and crop (or reduce) as needed, it
should save download time.

None of the repeating so called 'wood grain' patterns came anywhere near
the quality.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to draw a rectangle with gradient? Daniel Mark answers 1 September 16th, 2006 09:45 PM
I need some help here Chris answers 4 November 22nd, 2005 07:31 PM
I need some help here Chris answers 4 July 21st, 2005 11:15 PM
Help with printing a barcode Chris answers 0 July 21st, 2005 11:11 PM