Thanks, Bill. That works fine for me, and saves me a lot of messing about. Very neat!
On Wed, Apr 4, 2018 at 2:54 PM, bill lam <[email protected]> wrote: > something like this, > > coinsert 'jgl2' > t1=: 3 : 0 > a=. readimg_jqtide_ '/path/to/image.png' > wd 'pc form closeok' > wd 'cc g isidraw' > wd 'set g minwh ', ":(|.$a) > wd 'pshow' > glsel 'g' > glpixels 0 0 , (|.$a), ,a > ) > > but you will also need to resize the bitmap before display. > > > Ср, 04 апр 2018, Ian Clark написал(а): > > J window driver… > > Has anyone got a minimalist example of displaying a PNG in an "isidraw" > > control? > > > > Help > Studio > Qt Demos… > > has an example of writing ~temp/toucan.png to an "image" control but I > > can't get it to work with an isidraw. I need isidraw (or isigraph) > because > > I want mouseDown events to find out the coordinates of a mouseclick. > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
