nanogui: GrAreaCopy....


Previous by date: 19 Jun 2000 16:08:47 -0000 GrAreaCopy...., Simon Wood
Next by date: 19 Jun 2000 16:08:47 -0000 Kaffe port, rguseyno.cms.vinnica.ua
Previous in thread: 19 Jun 2000 16:08:47 -0000 GrAreaCopy...., Simon Wood
Next in thread: 19 Jun 2000 16:08:47 -0000 Re: GrAreaCopy...., Simon Wood

Subject: Re: GrAreaCopy....
From: "Greg Haerr" ####@####.####
Date: 19 Jun 2000 16:08:47 -0000
Message-Id: <0b1c01bfda09$1ebf7d50$3017dbd0@censoft.com>

: I've been hacking around and have found that I can only copy a mapped
: window, which is at the top of the pile (or I get the image from the
: overlapping window).
: 
: How can I subvert this and copy from a hidden window?
: Simon Wood


You can't.  Think in terms of blitting, which is just a memory-to
memory copy, which may be screen data.  If the window is mapped,
you can blit from the window to memory (actually we should
support source-clipping, which would copy BLACK or nothing
into the destination, but this isn't implemented yet).  Or, if
the window is unmapped, then it has no memory allocation. You
must instead use GrNewPixmap() and generate an offscreen
drawable, which operates exactly like a window with the drawing
functions, but can never be displayed. (you can blit from it to
a mapped window, though)

Regards,

Greg



Previous by date: 19 Jun 2000 16:08:47 -0000 GrAreaCopy...., Simon Wood
Next by date: 19 Jun 2000 16:08:47 -0000 Kaffe port, rguseyno.cms.vinnica.ua
Previous in thread: 19 Jun 2000 16:08:47 -0000 GrAreaCopy...., Simon Wood
Next in thread: 19 Jun 2000 16:08:47 -0000 Re: GrAreaCopy...., Simon Wood


Powered by ezmlm-browse 0.20.