I'm a bit new here, and may be missing something obvious. I have a panel, create a ColorDrawable object, initialize a canvas object. Now I want to do some basic free-hand drawing. I see I can do lines, circles, ovals, etc... but when it comes to drawing a simple rectangle, why is another object required?
In the canvas object, the DrawRect method expects a Rect object. But DrawLine and DrawCircle simply do the drawing. Am I missing an obvious way to draw a rectangle without using a Rect object?
Thanks!
In the canvas object, the DrawRect method expects a Rect object. But DrawLine and DrawCircle simply do the drawing. Am I missing an obvious way to draw a rectangle without using a Rect object?
Thanks!