Screenshots

2004-02-12 Thread Rychkov, Alexey
Hello!

There is such task:
I need to capture screenshots and store its in a memory ASAP (really, I need only 
array of data RGBA). 
I was doing that with help of XGetImage - but it works too slow;
After that I was trying to create XPixmap and copy screen content to it, but I 
discovered that Pixmap always changes according to the screen.
How can I create Pixmap and don't let X11 change its content? Or maybe exists some 
other solution.

Thanks.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Screenshots

2004-02-12 Thread Mark Vojkovich
On Thu, 12 Feb 2004, Rychkov, Alexey wrote:

 Hello!
 
 There is such task:
 I need to capture screenshots and store its in a memory ASAP (really, I need only 
 array of data RGBA). 
 I was doing that with help of XGetImage - but it works too slow;

   If it is for use locally (not over a network), then the shared
memory version XShmGetImage is faster.  Note however, that GetImage
operations are inherently slow with most graphics drivers.


 After that I was trying to create XPixmap and copy screen content to it, but I 
 discovered that Pixmap always changes according to the screen.

   I don't understand what you mean by that.

 How can I create Pixmap and don't let X11 change its content? Or maybe exists some 
 other solution.


Mark.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel