Skip to main content
gamedev.net
🔒 Locked

[java] Android - Draw a rectangle

Started by tchy33 Nov 27, 2010 at 3:58 AM 1 replies 4.8k views
Original Post
tchy33
tchy33
Hi there,

How can I draw rectangle at start and end points but still maintain the same width? ie 10 pixels width.

Rect simplr = new Rect();


simplr.set(start.x, start.y, end.x, end.y);

thank you

[Edited by - tchy33 on November 27, 2010 4:43:34 AM]
Aken H Bosch
Aken H Bosch
I'm confused, what does that code snippet have to do with your question?
Signature go here.
Dman1a
Dman1a
I believe this is what your asking.

Rect simplr = new Rect();

simplr.set(start.x, start.y, start.x+10, start.y+10);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.