2 Replies - 260 Views - Last Post: 25 December 2012 - 06:13 AM Rate Topic: -----

#1 suifer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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.

Thank you in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: Positioning of walls

#2 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2197
  • View blog
  • Posts: 5,224
  • 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.
Was This Post Helpful? 1
  • +
  • -

#3 suifer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1