iphone - What would be the reverse of CGRectUnion()? -
i can combine rect1 rect2 using cgrectunion() , combined rect3 fine.
is possible subtract rect1 rect3 (which contains rect1) , remaining part of rect?
as brad larson said, can't in quartz, because cgrect functions work nothing rects , component parts (points, sizes, , single numbers).
if programming mac, suggest using api named hishape. it's modern successor quickdraw regions, , such, capable of non-rectangular shapes. unfortunately, though hishape still available on 64-bit mac os x, not available on ios.
if need this, have write yourself, including own hishape-like not-necessarily-rectangular shape class.
Comments
Post a Comment