[wxPython-users] capturing contents of wxWindow into an image

Grzegorz Adam Hankiewicz ghankiewicz at rastertech.es
Wed Aug 1 10:52:16 PDT 2007


Keefe, Dan C wrote:
>
> Hi,
>
>  
>
> Is there a way to programmatically capture the contents of a wxWindow 
> into an image file?  The only device context I have to work with is a 
> wxPaintDC which is not buffered.  The device context goes out of scope 
> after the OnPaint method goes out of scope.
>
>  
>
> In a nutshell, I need a way to program taking a screen snapshot for a 
> defined region within a wxWindow.
>

Hmmm... see if the code at http://wiki.wxpython.org/WorkingWithImages 
for the screen capture will work for you.

-- 
Rastertech España S.A.
	Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.17) 	  *·*   	Fax +34 918 457 889
ghankiewicz at rastertech.es 	  *·*   	www.rastertech.es 
<http://www.rastertech.es/>





More information about the wxpython-users mailing list