NSAffineTransform
NSAffineTransform
- Subject: NSAffineTransform
- From: Lorenzo <email@hidden>
- Date: Sat, 23 Oct 2004 18:39:54 +0200
Hi there,
suppose that when I drag the mouse I want to resize dinamically a
NSBezierPath. Actually I do that resampling any point of the bezierPath. And
it works, slowly but it works. Now I have just discovered that I can use
NSAffineTransform.
NSAffineTransform *myTransform = [NSAffineTransform transform];
while(mouseDrag){
[myTransform scaleXBy:factorX scaleYBy:factorY];
[bezierPath transformUsingAffineTransform:myTransform];
// ...
}
but the problem is that once I apply the first scaling to the bezierPath,
it became transformed thus the next scaling should pay attention to the new
scale. The final (wrong) effect is that it keeps to resize double than the
expected value. Do you suggest something in order to fix this problem?
Should I save the original bezierPath then duplicate and tranform the
bezierPath at any loop...?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden