Returns a rectangle that is smaller or larger than the source rectangle, with the same center point.


- rect (CGRect)
- The source rectangle.
- dx (Single)
- The value by which to adjust the x-coordinates of the source rectangle. To create an inset rectangle, specify a positive value. To create a larger, encompassing rectangle, specify a negative value.
- dy (Single)
- The value by which to adjust the y-coordinates of the source rectangle. To create an inset rectangle, specify a positive value. To create a larger, encompassing rectangle, specify a negative value.

A rectangle with its origin offset in the x-axis by the distance specified by the dx parameter and in the y-axis by the distance specified by the dy parameter, and its size adjusted by (2*dx,2*dy), relative to the source rectangle. If dx and dy are positive values, then the rectangle�s size is decreased. If dx and dy are negative values, the rectangle�s size is increased.

Original declaration is : CGRect CGRectInset ( CGRect rect, float dx, float dy );

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)