Take a screenshot of CodeCity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Take a screenshot of CodeCity

Tommaso DS
Hi all!

As you may have noticed, here in Lugano we are playing a lot with
CodeCity ;-)

I was wondering if there is a way to programmatically take a screenshot
of a CodeCity visualization.
I see that with Roassal you can do that, but it seems to be not
compatible with CC, am I missing something?

Thanks!
Tommaso
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Take a screenshot of CodeCity

Tudor Girba-2
Not yet. This is another feature request for Ricky. The only problem is that he cannot work on it right now :(

Doru


On Fri, Jun 13, 2014 at 10:35 AM, Tommaso Dal Sasso <[hidden email]> wrote:
Hi all!

As you may have noticed, here in Lugano we are playing a lot with CodeCity ;-)

I was wondering if there is a way to programmatically take a screenshot of a CodeCity visualization.
I see that with Roassal you can do that, but it seems to be not compatible with CC, am I missing something?

Thanks!
Tommaso
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Take a screenshot of CodeCity

Stephan Eggermont-3
In reply to this post by Tommaso DS
Where is the problem?

|directory exporter   | 
directory := FileSystem workingDirectory / 'pictures' . 
directory ensureCreateDirectory. 
exporter := DOScreenshotExporter new. 
exporter directory: directory. 
exporter writeWorldAs: 'world.png'. 

with
DOScreenshotExporter>>writeWorldAs: aFileName
(directory / aFileName) ensureDelete.
PNGReadWriter putForm: World imageForm  onFileNamed: (directory / aFileName).


though this form might not work
DOScreenshotExporter>>writeMorph: aMorph rectangle: aRectangle as: aFileName
(directory / aFileName) ensureDelete.
PNGReadWriter putForm: (aMorph imageFormForRectangle: aRectangle) onFileNamed: (directory / aFileName).

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev