Re: [gtk-list] double buffering question
- From: Pedro Medeiros <pjira solar com br>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] double buffering question
- Date: Tue, 25 Apr 2000 23:45:35 +0000
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]