nanogui: Screenshot
Subject:
Re: Screenshot
From:
"Gary James" ####@####.####
Date:
11 May 2001 13:39:56 -0000
Message-Id: <3AFBB333.8773.2F126E@localhost>
I guess those were pretty old notes...
First off it doesn't look like the screen capture is set up to work
across all platform combinations. It looks like only a few keyboard
drivers are setup to generate the print key (MWKEY_PRINT). It looks
like the capture screen code can only handle captureing from a frame
buffer. And it looks like the file name will be "file" not "snap.bmp".
Here's where you want to look to find out whats going on in your
environment. Search for "MWKEY_PRINT" in ".../microwin/src/drivers/".
Make sure that your keyboard driver has the ability to generate a
MWKEY_PRINT key code. It looks like the X11 and tty scancode drivers
generate this keycode from the printscreen key, but the tty driver
still uses cntrl-P.
The key is processed in ".../microwin/src/mwin/winevent.c" or
".../microwin/src/mwin/srvevent.c" for mwin or nano-X respectively.
These functions call GdCaptureScreen("file") the parameter is the
name of the file that will be created, therefore "file" rather than
"snap.bmp". Then look at GdCaptureScreen(). This function reads
screen data from the frame buffer driver. So if you are not running
in frame buffer mode, I don't think you are going to get an image.
One other thing that you might want to consider. If you are running
in X11 mode, you can get screen shots easily using the Gimp.
Gary James
####@####.####
http://home.twcny.rr.com/embedded/
> Hi Gary,
>
> Thanks for your information,
>
> But, it still won't work. I didn't get snap.bmp in
> any place.
> I even "grep snap * -r" in microwindows source code
> and found nothing.
> Are you sure you can take screenshot this way?
>
> Best Regards,
> Yi Yang
>
>
> --- Gary James ####@####.#### wrote:
> > Hi Yi,
> >
> > This is coming off some old notes so my apologizes
> > if it has some errors...
> > The print screen function has moved from the
> > "Ctrl-P" key combination to
> > the "PrintScreen" key. This will create a file named
> > snap.bmp. To convert
> > to jpeg run:
> >
> > bin/makebmp file snap.bmp && cjpeg snap.bmp >
> > snap.jpg
> >
> >
> > Gary James
> > ####@####.####
> > http://home.twcny.rr.com/embedded/
> >
> >
> > On Tue, 08 May 2001 02:22:22 yi yang wrote:
> > > Hi all,
> > > I see many screenshots in microwindows.org.
> > > How can I take my screenshot?
> > > I find someone asked this before, and
> > somebody
> > > say press CTRL-P.
> > > I tried, but no response.
> > > I want to take the screenshots in
> > framebuffer.
> > > Can anyone explain the procedure more
> > clearly?
> > >
> > > Best Regards,
> > > Yi Yang
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > ####@####.####
> > > For additional commands, e-mail:
> > ####@####.####
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > ####@####.####
> > For additional commands, e-mail:
> > ####@####.####
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>