Re: [gtk-list] gtk_draw_pixmap problem
- From: Allan Black <allan florence scotnet co uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] gtk_draw_pixmap problem
- Date: Wed, 16 Dec 98 19:08:31 GMT
> im = gdk_imlib_load_image(IMAGE);
> w=im->rgb_width;h=im->rgb_height;
> gdk_imlib_render(im, w, h);
OK. im now "contains" an image.
> gdkpm = gdk_imlib_move_image(im);
The image from im is now "pointed to" by gdkpm. im's image is now
NULL (you've *moved* it).
> gdkpm2 = gdk_imlib_move_image(im);
gdkpm2 is now NULL.
> gdk_draw_pixmap(gdkpm2,
^^^^^^ That's a NULL pointer.
> window->style->black_gc,
> gdkpm,
> 0, 0, 0, 0, w, h);
I don't know what advice to give you on how to fix your code, because it's
difficult to figure out what you're trying to do :-)
Perhaps one of the assignments should use gdk_imlib_copy_image? However,
you'll then end up drawing one pixmap onto another, where the destination
already contained the image you were copying .... ?
Allan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]