Hi Rosario,

Sorry for my late answer. 
First, I suggest to use RTMetricMap instead of RTMapBuilder. Regarding your 
problem, Roassal does not have a PNG exporter. This is not a big deal to do, 
but I just haven’t made it yet. If you want to give a try, and porting it from 
Roassal1 to Roassal2, then you are very welcome. 

You need to open the view to properly set the extent. I am not quite sure why 
and how this happens. I have to dig this out. But again, it would be easier 
with the PNG exporter.
Anyway, I think you want to do the following:

-=-=-=-=-=-=-=-=-=-=
| b |
b := RTMetricMap new.
b countries: RTMapBuilder countries color: Color white.
b open delete.
b view canvas morph 
        extent: b view canvas camera encompassingRectangle extent;
        exportAsPNG.
-=-=-=-=-=-=-=-=-=-=

Let me know how it goes. 
Oh, and by the way… the work you are doing with the tweets is truly amazing. 
Will you be at Esug?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Jul 15, 2014, at 5:06 PM, rosariosm <rosariosantamari...@gmail.com> wrote:

> Hi,
> I have the following problem when i try to export a view into a png file. I
> use a RTMapBuilder as an example:
> 
> b := RTMapBuilder new.
> b countries: RTMapBuilder countries.
>       
> b view  canvas buildMorph 
>       *extent: view view canvas camera encompassingRectangle extent ;*
>       exportAsPNG.
> 
> if i don't specify the rectangle extent (bold line), i can export without
> problem but i cant see the complete image. on the other hand, if a specify
> the rectangle extent, an error occurs. see both examples:
> 
> 1) without extent
> <http://forum.world.st/file/n4767944/prueba2.png> 
> 
> 2) with extent
> <http://forum.world.st/file/n4767944/prueba.png> 
> 
> 
> Anyone knows what is happenning??
> Thanks,
> Rosario
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/export-roassal-views-tp4767944.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 


Reply via email to