nanogui: Background Pixmap
Subject:
Background Pixmap
From:
Fabrice Gautier ####@####.####
Date:
11 Feb 2002 23:19:02 -0000
Message-Id: <B1F6452C89AFD411AE0800A0CC734C239DBB2E@EMAIL1>
Hi,
I'm trying to display a background pixmap in the Root window.
I do :
GR_WINDOW_ID pixmap;
pixmap = GrNewPixmap(720,480,NULL);
initgc = GrNewGC();
GrDrawImageFromFile(pixmap, initgc, 0,0, 720, 480, "splash.bmp",0);
GrSetBackgroundPixmap(GR_ROOT_WINDOW_ID, pixmap,0);
but the background is stay black.
If I do
GrDrawImageFromFile(GR_ROOT_WINDOW_ID, initgc, 0,0, 720, 480,
"splash.bmp",0);
the image is displayed - but that's not what i want to do I think.
How does the background pixmaps work?
Thank you
--
Fabrice Gautier,
####@####.####