473,323 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

using a pattern to fill a rectangle


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.
Mar 27 '08 #1
2 1463
In message <1277536.1tRbDXSDaS@sd>, Sidney Diab
<di*********@free.fr.invalidwrites
>
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 ni**@maproom.co.uk
Mar 28 '08 #2
Nick Wedd wrote:
In message <1277536.1tRbDXSDaS@sd>, Sidney Diab
<di*********@free.fr.invalidwrites
>>
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.
Mar 28 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Saeed Amrollahi | last post by:
Dear All C++ Programmers Hello I am Saeed Amrollahi. I am a software engineer in Tehran Sewerage Company. I try to use std::map and map::find member function. I use Visual Studio .NET. my...
6
by: malv | last post by:
Simple case: In this list, how to find all occurences of intervals of n adjacent indexes having at least one list-member with a value between given limits. Visualizing the list as a...
47
by: fb | last post by:
Hi Everyone. Thanks for the help with the qudratic equation problem...I didn't think about actually doing the math...whoops. Anyway... I'm having some trouble getting the following program to...
2
by: Abubakar | last post by:
Hi, NOTE: in the following code Rectangle is a struct inside the System.Drawing namespace. I'v a following code: Rectangle GetFillRectangle(ref Rectangle rect) { Rectangle newrect;...
4
by: SStory | last post by:
I am trying very hard to take an image and fill a shape with part of it. The way I do it is get a rectangle for the basic shape, add to a region, make some other shapes and exclude form region....
2
by: Adam Maltby | last post by:
Hi does anyone know how to fill a rectangle with an ellipse style fill (ie so it gives a spotlight effect on a rectange?) I know how to create rectangles, ellipses etc and I can fill the rect...
2
by: venk | last post by:
Hi, I would like to know how to change the fill of things we put in a tkinter's canvas. for example, if i create a rectangle and i would want to change the fill of the rectangle once it is...
0
by: micro_bug | last post by:
As we know, for display, we can call CreatePatternBrush() to create a 8pixel * 8pixel to fill a region. It is perfect for display in the display device and some printers. But In some high-res...
3
by: SMH | last post by:
Normally an SVG document is loaded/parsed/interpreted inside an HTML document using an 'object' (or 'embed') element, although there are supposedly other ways too. The problem is, the SVG document...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.