bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: implementation of [NSWindow cacheImageInRect:]


From: Marko Riedel
Subject: Re: implementation of [NSWindow cacheImageInRect:]
Date: Mon, 15 Jul 2002 17:16:07 +0200 (CEST)

Hi all,

thanks for providing a first implementation of "cacheImageInRect."
I've tried it and there appear to be problems. I hope I have the
correct coordinate system: I convert to window coordinates before I
invoke the method. Then something extremely bizarre happens: imagine
that the window is divided into two equal halves, upper and lower. If
the cached image is above the line, cacheImageInRect grabs the bits
from below the line, if it is above the line, the bits are from below
the line. The upper half is mirrored with respect to the dividing
line, but the bitmap itself is not flipped. All of this takes place in
a scrollview.

Maybe it would help to write a small test program to test these
methods. I might write one if I get around to it. Then again maybe you
can tell what's wrong by using my description. There seems to be
something wrong with the coordinate systems.

BTW I downloaded NSWindow.[hm] and recompiled everything. I plugged it
into gui-0.7.7. Should I upgrade everything?

Best regards,

-- 
+------------------------------------------------------------+
| Marko Riedel, EDV Neue Arbeit gGmbH, mriedel@neuearbeit.de |
| http://www.geocities.com/markoriedelde/index.html          |
+------------------------------------------------------------+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]