Re: Problems with Gdk::Pixbuf

On Mon Oct 14, 2002 at 04:58:33PM -0400, Jeremy McLeod wrote:
I'm trying to load png data from a GD::Image object into a DrawingArea,
but I'm having problems.  This is the relevant code:
my $gd = $graph->plot(\ data);

Update:  I've gotten the image to load (sort of).  It certainly draws
something, but all I see are a bunch of colorful stripes, the
characteristics of which can be altered with the rowstride parameter in

Additionally, loading png data from a png file created from the above
plotting with Gtk::Gdk::Pixbuf->new_from_file() works and renders the
image correctly. I fail to see any real difference between the two 
methods; both are reading the same set of data.  I've changed the code 
slightly, however, removing the DrawingArea widget.  It's now drawing 
the image directly onto the toplevel window.

So what's the functional difference between new_from_file() and

In any case, from reading the archives, I see quite a few questions
similar to mine.  I see zero answers.  Where can I go to get my
questions answered?

Jeremy McLeod
jeremym lawcode net

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