# Positioning of walls

Page 1 of 1

## 2 Replies - 373 Views - Last Post: 25 December 2012 - 06:13 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=304787&amp;s=999d81067293b829a7c17c16966b309c&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 suifer

Reputation: 0
• Posts: 22
• Joined: 30-July 12

# Positioning of walls

Posted 25 December 2012 - 04:29 AM

Hello,
I am contacting you because I need help.
Then I is an image in this image I made a script that randomly put walls on the image, the problem is that I want the walls arise randomly in a part of the image and not over the entire image.
So how to say the walls of this position only in this part of the image.
Here is the picture:
http://img812.images...1/fondarene.jpg
So infact it should not go on the walls yellow.

Is This A Good Question/Topic? 0

## Replies To: Positioning of walls

### #2 GregBrannon

• D.I.C Lover

Reputation: 2250
• Posts: 5,340
• Joined: 10-September 10

## Re: Positioning of walls

Posted 25 December 2012 - 04:45 AM

Determine the coordinates of the image inside the yellow boundary and draw the walls only within those boundaries. Graphics are drawn from a starting point defined by x and y. Rather than starting at x = 0 and y = 0 and drawing to x = rightSideOfGraphic y = bottomOfGraphic, the drawing will begin at an x and y always greater than 0 and end at something less than the coordinates of the graphic's edges.

### #3 suifer

Reputation: 0
• Posts: 22
• Joined: 30-July 12

## Re: Positioning of walls

Posted 25 December 2012 - 06:13 AM

Thank you but there is no way to do with the pixels? Basically it says the image is less yellow edge pixels.
I'm learning java full competence but are still limited.