Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Convert Gnome2::Canvas::Pixbuf to Image::Magick Array

by renegadex (Beadle)
on Jul 23, 2008 at 03:16 UTC ( [id://699490]=CUFP: print w/replies, xml ) Need Help??

This simple code will convert a Gnome2::Canvas::Pixbuf into a Image::Magick Array. Enjoy Perlmagick Programmers!
#Convert Gnome2::Canvas::Pixbuf To Image::Magick Array sub convert_gnome2pixbuf_im { my $pixbuf_g = shift; print $pixbuf_g , "\n"; #Convert Gnome2::Canvas::Pixbuf To Gtk2::Gdk::Pixbuf my $pixbuf = $pixbuf_g->get('pixbuf'); print $pixbuf , "\n"; #Convert Gtk2::Gdk::Pixbuf To BLOb my $blob = $pixbuf->save_to_buffer('jpeg'); my $im = Image::Magick->new; #Convert BLOb to Image::Magick Array $im->BlobToImage($blob); return $im }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://699490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-07-22 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.