Tx Doru.
My request actually was about a "formal" mechanism where we could generate screenshots from Glamour browsers and later integrating them in the pdf documents, for example. 

Now, most of the time what we to export are roassal visualizations or Eyesee diagrams. Roassal come with its own support and eyesee has its canvas in the presentation that be exported. So added an extension method on GLMEyeseePres to be able to export the canvas as a PNG.

My hack for the morphs is to do the rendering of the morph and then obtain a ImageForm to be exported. So I think even with the morphs it wont be too difficult to create something that works reasonably well. For the moment, I kept these into my extension methods on Glamour but if its something that can serve to the community I can share a slice to be integrated into Glamour.

regards,
Usman


On Tue, Jun 4, 2013 at 8:50 AM, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi Usman,

Sorry for the late reply.

Interesting request.

The only way you can do that is to obtain a reference to the Morph corresponding to your presentation, and this can be tricky. The problem is that not all generated morphs have the same internal representation, and it is difficult to have a general solution.

However, if you are looking only for a practical manual solution, you can do this:
- open your browser and bring it in the desired constellation
- on the window title bar do: Ctrl+Shift+RightClick
- on the menu do explore
- in the GTInspector that opens, choose the Submorphs tab
- start selecting nodes
- in the pane to the right, choose the Morph tab and you will get a preview of what is selected
- continue selecting from the left pane until you get to the desired morph
- from the right pane, choose the top right menu and export to PNG

Here is a description including a video:
http://www.humane-assessment.com/blog/custom-morph-screenshot-with-gtinspector/

Cheers,
Doru



On May 27, 2013, at 5:36 PM, Usman Bhatti <usman.bhatti@gmail.com> wrote:

> Did someone try to export individual panes of a glamour browser to an image file?
> I see that GLMBrowser>>screenshot: aFilenameString on: anObject after: aBlock
> does an export of the browser window's image but that more than what I am looking for.
>
> tx,
> Usman
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Reasonable is what we are accustomed with."


_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev