public static CGRectInset ( |
||
rect | The source rectangle. | |
dx | 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 | 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. | |
Результат |
public static CGRect CGRectInset(CGRect rect, CGFloat dx, CGFloat dy)
{
return CGRectMake(rect.origin.x + dx,
rect.origin.y + dy,
rect.size.width - 2*dx,
rect.size.height - 2*dy);
}