tag:blogger.com,1999:blog-865923359735383241.post3814350392779512060..comments2023-10-29T07:27:09.012-06:00Comments on Ccna final exam - java, php, javascript, ios, cshap all in one: draw rectangle on a picture from pixels coordinatesUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-865923359735383241.post-23608177887126690422012-02-14T19:09:43.557-07:002012-02-14T19:09:43.557-07:00I don't think you have a problem here, you wou...I don't think you have a problem here, you would just do this:<br /><br />canvas.drawRect(a.getX(), a.getY(), c.getX(), c.getY(), paint);<br /><br />Yes the values are in pixels however your origin (0,0) is the top left of the canvas normally. Y value becomes more positive as you move down the canvas.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.com