Re: [gtk-list] Changing pixmap data



>  After displaying the rendered pixmap in a gtk_drawing_area I
>  have to change the RGB data of each pixel after certain rules.
>  The size of the pixmap will not change.  Currently I change
>  the rgb_data of the GdkImlibImage and render a new pixmap.
>  How can I improve the speed, i.e. write directly into the
>  pixmap?
>  
>  I havn't used gdk_rgb() at this time.  Would it help for this
>  matter and are there examples for use.

You may prefer to use GdkRGB for this.  It has the advantage that you
do not have to re-create the whole pixmap every time; you can just
repaint the area you need from the RGB buffer.

  Federico



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