Having pixmaps and images with depth diferent from screen.



Hello.
	I´m working with a image internaly with 24 bits depth, and I want to
use X to draw in it. To do it I need to create a pixmap from it. The
problem is that gdk_image_new requires a GdkVisual structure, and
gdk_pixmap_new requires a GdkWindow to create it acording to the window.
In other words both are dependant of screen depth.
	The program can run in any screen color depth, so the question is ¿can
I draw on a pixmap with a diferent depth from screen depth?.
	Thanks.
-- 
+--------------------------+---------------------------+
|David Abilleira Freijeiro | Pontevedra, España        |
+--------------------------+---------------------------+
|http://members.xoom.com/odaf   (mailto:odaf@nexo.es)  |
|    (UNED, Mis Programas, Linux, Programación, etc.)  |
|WAINU: http://www.geocities.com/Athens/Forum/5889/    |
+------------------------------------------------------+



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