Accessing points within an NSBezierPath
Accessing points within an NSBezierPath
- Subject: Accessing points within an NSBezierPath
- From: Marco Binder <email@hidden>
- Date: Mon, 29 Jul 2002 23:03:35 +0200
Hello list!
Does anyone know a fast way to enumerate the points contained within an
NSBezierPath? The first (and up to now only) was I could think of is to get
its bounds and scan the whole bounding rectangle, testing
NSBezierPath.containsPoint() for each single pixel. I would guess, this is
very time consuming (and extremely inefficient if the path is for example
just a narrow box, but diagonal to the current coordinate system...)
If anyone knows a handy method, I4d we very grateful if you would let me
know!
Thanks in advance,
marco
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.