Re: [NSBezierPath clipRect] do not do what is says!
Re: [NSBezierPath clipRect] do not do what is says!
- Subject: Re: [NSBezierPath clipRect] do not do what is says!
- From: Eric Forget <email@hidden>
- Date: Thu, 26 Feb 2004 17:21:01 -0500
>
> clipRect:
>
>
>
> + (void)clipRect:(NSRect)aRect
>
> Intersects the current clipping path, stored in the current graphics
>
> context, with the rectangle referred to by aRect, and replaces the
>
> current
>
> clipping path with the resulting path.
>
>
>
> However, from my testing, it replaces the clipping without
>
> intersecting with
>
> the current one!
>
>
Have you filed a bug?
Not yet because I was unable to make a small snippet of code to reproduce
it.
After some investigation, I've found that it was not clipRect fault but
[NSView translateOriginToPoint:] instead. In fact it appears that
translateOriginToPoint is resetting the clip rect. Is it a normal behavior?
I was doing the following to remove fuzzy lines at 1 point:
[self translateOriginToPoint:NSMakePoint(0.5, 0.5)];
Eric
___________________________________________________________________
Eric Forget Cafederic
email@hidden <
http://www.cafederic.com/>
Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.