help needed for create pixmap with 8 bit depth



To whom it may concern,


Currently I am trying to create a pixmap with 8 bit color depth as
following:
result_pixmap = gdk_pixmap_new(widget->window, WIDTH, HEIGHT, 8) but
when I compile it, an error msg follow up "integer out of range". And I
also wish to output the result as pixbuf. is it possible for me to use
the function gdk_pixbuf_get_from_drawable to commit this task??

Many thanks!




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