Re: transparent layer over image
- From: Dmitriy Kuvshinov <dmitriyk genphys phys msu ru>
- To: muppet <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: transparent layer over image
- Date: Wed, 27 Oct 2004 13:06:09 +0000
hello!
if you already have XS code in your module, then it will be much
easier for you to draw on the image in C.
After insert #include "gtk2-perl.h" in my *.xs, system cannot find path
for header files like
gperl.h or gtk/gtk.h (bit i see it *.h files in
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/Gtk2)
... :(
you can pass the GdkPixbuf to your xsub, draw on it in C (where there
is no need to copy data, unpack/pack pixels, and all that mess), and
then display the pixbuf from perl.
it's nice way, but i has some error... :(
to do this you'll need to #include <gtk2perl.h> in your XS file, so
that your code will know how to extract the GdkPixbuf* from the
Gtk2::Gdk::Pixbuf reference. you can use ExtUtils::Depends to find
the necessary CFLAGS and typemaps.
...
dmitriy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]