RE: drawing graphics



yo all
About back pixmap i have a  question, i did all u told and now it works like

a Ferrari engine :D
however each time i want to set a new back pixmap i write these few lines

GdkPixmap *pixmap = NULL;
 
w=(GtkWidget*)gtk_object_get_data(GTK_OBJECT(((Formulaire*)data)->GetMainWin
dow()),"drawingarea1");
pixmap=gdk_pixmap_new (w->window,
w->allocation.width,w->allocation.height,-1);
...
//here i draw onto pixmap
...
gdk_window_set_back_pixmap(w->window,pixmap,0);

thus i think it s a bit dirty... because i don t clear the previous drawing
area back buffer!!
how can i get a pointer to that back buffer 
i know i could use a global variable but...
; i didn t find gdk_window_get_back_pixmap  :P
any idea? 

thanks

regards



*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
SG Asset Management et ses filiales declinent toute responsabilite au titre
de ce message s'il a ete altere, deforme ou falsifie.

Découvrez l'offre et les services de SG Asset Management sur le site
www.sgam.fr 

				********

This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SG Asset Management nor any of its subsidiaries or affiliates shall
be liable for the message if altered, changed or falsified. 

*************************************************************************






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