|
From: | Adam Fedor |
Subject: | Re: Fix: NSView, view clipping |
Date: | Thu, 06 Sep 2001 08:30:10 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.2) Gecko/20010630 |
Georg Fleischmann wrote:
lockFocus. The problem with this is that user objects (such as gstates) are stored in local VM, and a restore invalidates anything in local VM.Was rectviewclip designed for use in root views only ?
I think it's really designed for executing things like external EPS files from within DPS. You use rectviewclip to make sure the EPS file behaves and doesn't try to draw outside of it's bounds.
The only other alternative is to go back to gsave/grestore.I did a quick test and found one problem in using rectclip: DPSimage depends on the viewclip for clipping. Clipping an image against the clipping path in gstate could become quite complicated. Just using the window bounds would result in problems with images which should be clipped to a view.
Those are bugs. I've fixed those in my version and it works fine. -- Adam Fedor, Digital Optics | Fudd's law of opposition: Push fedor@doc.com http://www.doc.com | something hard enough, and it fedor@gnu.org http://www.gnustep.org | will fall over.
[Prev in Thread] | Current Thread | [Next in Thread] |