Re: [gtk-vnc-devel] API for capturing display to a pixbuf
- From: "Daniel P. Berrange" <berrange redhat com>
- To: Anthony Liguori <anthony codemonkey ws>
- Cc: gtk-vnc-devel lists sourceforge net
- Subject: Re: [gtk-vnc-devel] API for capturing display to a pixbuf
- Date: Tue, 10 Jul 2007 20:04:57 +0100
On Mon, Jul 09, 2007 at 09:05:08AM -0500, Anthony Liguori wrote:
> Daniel P. Berrange wrote:
> >The attached patch adds a new API
> >
> >
> > GdkPixbuf *vnc_display_get_pixbuf(VncDisplay *vnc);
> >
> >which captures the contents of the remote display into a pixbuf. The
> >primary
> >motivation is that this pixbuf can then be saved to a file. eg this allows
> >the viewer to implement 'take a screenshot' functionality - I've added to
> >the
> >example programs so that 'F12' saves the display to gvncviewer.png
> >
> >Dan.
> >
>
> Looks good. Thanks!
I've not pushed this yet, because looking at it again, I'm not convinced
the code works correctly for non-TrueColour displays. I need to do more
testing of it. Also is your SHM code for QEMU around anywhere - it'd be
nice to test the SHM extension too ?
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]