Re: Saving a pixmap which is larger than visible screen size
- From: zentara <zentara1 sbcglobal net>
- To: gtk-list gnome org
- Subject: Re: Saving a pixmap which is larger than visible screen size
- Date: Sun, 29 Oct 2006 12:14:12 -0500
On Sat, 28 Oct 2006 13:45:53 -0700
Anna <christiana hipointcoffee com> wrote:
>Here's a guess: I think of a "drawable" as an area on the screen. I
>think you're pulling the image from the wrong object.
>- Anna
Hi, again, you were right.
I think of a "drawable" as a Gtk2::Drawable object. A Gtk2::Gdk::Pixmap
is a Gtk2::Drawable, so not realizing that was the problem.
With a fresh mind this morning, I finally
realized that I was reading from the viewport, but that $pixmap itself
is a Drawable object. I was getting confused by trying to make sure the
HRuler was visible in the saved file. A bit of redesign should fix that.
$lpixbuf->get_from_drawable ($pixmap, # not $viewport->window
undef, 0, 0, 0, 0, $width, $height);
# now printing $lpixbuf to file saves the whole 2400 pixels.
So this solves it, thanks again.
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]