Probably you should look at glwh
These examples have saves too
   
http://www.jsoftware.com/jwiki?action=fullsearch&value=glwh&context=180&fullsearch=Text

But between glwh (or other showing) and capturing (glqall)
there need to be events processing, as Bill said.
Maybe "msgs" (or so) from wd would be helpful,
or forcing viewmat to render--a "show" verb like in plot.


--- Devon McCormick <[EMAIL PROTECTED]> wrote:

> Members of the forum -
> 
> I'm experimenting with saving bitmaps generated by "viewmat".  However, I
> find my usual method of incremental development gets snagged on some kind of
> windowing oddness.  My interactive experiment went like this:
> 
>    viewmat 1 o. +/~i:6j999
>    setsizeloc_jviewmat_ 0 0 1000 1000
>    savemat_jviewmat_ pixdir,'SineStripes.bmp'
> 
> where "pixdir" is the directory where I store my bitmaps
> and savemat_jviewmat_
>  sets the size and location of the viewmat window like this:
> setsizeloc_jviewmat_=: 3 : 0
>    if. 0=#fms=. hforms'' do.
>        wdinfo 'viewmat';'No viewmat forms.' return.
>    end.
>    wd 'psel ',(<0 1) pick fms
>    wd 'pmovex ',":y
> NB.EG setsizeloc 10 10 240 240
> )
> 
> I'm resizing it to save a bitmap larger than the default.
> 
> However, when I put the first three lines into a
> function, the resulting file saved has only 64K (instead of 2.7MB) and
> does not display as a valid bitmap.
> The same thing happens when I put the three lines into a single statement
> separated by "["s.
> Something happens, in the timing or otherwise, of returning to immediate
> execution.  Inserting wait statements doesn't help - in fact this seems to
> freeze the display of the picture frame, before filling it in, for the wait
> time.
> 
> Is there an obvious way to fix this or better way to save viewmats?
> 
> Thanks,
> 
> Devon
> 
> -- 
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to