Re: Clipboard WIN32
On Mon, 20 Dec 1999 16:11:38 -0800, timmy <tim781 at PACBELL.NET> wrote:
>does anyone know how to put the contents of WIN32 clipboard
>into a sequence. win32lib.htm tells me how to paste from the
>clipboard but not how to put the contents into a sequence. I want to
>work with graphics copied to the clipboard. -- and does anyone know
>how to capture the screen to the clipboard. The screen capture program
>in the archives uses a modified version of win32lib.ew and I'd like to
>just use David's win32lib.ew. thanks once again.. :)
>
>
>timmy
Once again, it might help to know what you want to accomplish. If you want
to copy the screen, I probably wouldn't use the clipboard, I'd probably
use 'copyBlt' and copy the image into a pixmap. For example:
-- untested code snippet --
constant
ScreenSize = getExtent( Screen ),
ScreenBuffer = create( Pixmap, "", 0, 0, 0,
ScreenSize[1], ScreenSize[2], 0 ),
procedure CopyScreenToBuffer()
copyBlt( ScreenBuffer, 0, 0, Screen )
end procedure
procedure CopyBufferToScreen()
copyBlt( Screen, 0, 0, ScreenBuffer )
end procedure
-- end of untested code snippet --
Hope this helps,
Brian
|
Not Categorized, Please Help
|
|