Screen Copy onto Window???
- Posted by Euman <euman at BELLSOUTH.NET> Jan 13, 2001
- 467 views
Hello all, I have a problem that I could'nt find an answer for on the listserve (prior post), so here goes. I have a bitmap that has rounded corners and am setting transparent the outter edges of the bitmap (easy enough) The problem I have is when I create a Window for this bitmap to fit ontop of, I want to capture the SCREEN in the area of my new Window before I paint it and set the captured Screen ontop of the new Window before I display my bitmap... (much like McAfee does in all their newest ware's) essentially hideing the Window with a portion of the screen before I drew the Window. If that makes it easier for some. Here is an attempt (but failure) to do this. constant ScreenBuffer = create( Pixmap, "", 0, 50, 50, 500, 400, 0 ) procedure CopyScreenToBuffer() --myBitmap will start at x = 50 y = 50 copyBlt( ScreenBuffer, 50, 50, Screen ) end procedure CopyScreenToBuffer() constant procedure CopyBufferToScreen() copyBlt( Screen, 50, 50, ScreenBuffer ) repaintWindow ( Win ) end procedure onPaint[Win] = routine_id("CopyBufferToScreen") What am I doing wrong??? Is there a better, smoother, faster way? preferably one that works. hehe euman at bellsouth.net