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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -