Re: problem with drawing 32bit image to 16bit screen (works with 32/24 bit screen)



Havoc Pennington wrote:

Patrick Sung <phsung ualberta ca> writes:

I have made a XImage dump to a file and compared both the output from the 32bit and 16bit
systems.  Well, it seems like the capture card library is not doing the things I want it to
do.  In the 16bit system, the bitmap seems to in 16 bpp while the 32bit system gives me a
32bpp bitmap (I already called a function to change the output bitmap to 32bit regardless of
what depth the system has).


If the lib is just giving you an image in native XImage format for the
display, you can just draw the image with XPutImage().

XPutImage (gdk_display,
          GDK_WINDOW_XWINDOW (drawable),
          xgc, ximage, .... etc.)

So what is the proper way to obtain 'gdk_display' and 'xgc' (function calls, macros?)

Regards,
Patrick






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