Graphics Programs Reference
In-Depth Information
Remember that you are looking at two view instances that are stacked on top of each oth-
er. The circles are different sizes because the frame of each view (and, thus, the bounds
and the image that represents the view) are different sizes.
While the
bounds origin
is typically
(0, 0)
and the
size
is typically equal to the
frame
's
size
, this is sometimes not the case. Thus, when drawing, you should never
use constant numbers. Instead, use a combination of the
origin
and
size
of the
bounds
to specify the coordinates that you draw to.