Re: [gtk-list] Re: double buffering question
- From: Amit Kumar <amit usc edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: double buffering question
- Date: Tue, 25 Apr 2000 20:16:04 -0700 (PDT)
hmmm... but the pixmaps A and B are different: A is GdkPixmap, and B
is GtkPixmap, right? is there any way of having B a GdkPixmap too?
i guess one way is to create a blank GdkPixmap, and draw A on
it. which brings me to my second question: how do you find the size of
a pixmap, if all you have is a GdkPixmap *?
i'm guessing you can put it in a window, and try to find the size of
the window.. but, er, is there any better way? <grin>
amit
So said Pedro Medeiros: (Today)
> Amit Kumar wrote:
> > is there any way of copying/cloning/duplicating a pixmap from another
> > one? basically each time i do a redraw, i want to copy 'A' to 'B',
> > then draw the rect, and then redisplay.
>
> GdkPixmap *gdkpixmap;
> GdkBitmap *mask;
> GtkPixmap *pixmap_B;
>
> (...)
>
> gtk_pixmap_get (pixmap_A, &gdkpixmap, &mask);
> pixmap_B = gtk_pixmap_new (gdkpixmap, mask);
>
>
>
> As long as you want them to look the same, this should
> work.
>
> --
> Pedro Medeiros.
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]