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.
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 <rosariosantamarina1@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.
Hi Alexandre, Yes, that solution seems to work fine. Right now i'm working at other things but i could do the exporter later. It will be useful for everyone. Arturo and I don't think that our work is ready for Esug, but we could present it next year, who knows. Thanks! It's a lot of hard work. Cheers, Rosario -- View this message in context: http://forum.world.st/export-roassal-views-tp4767944p4770079.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
It would be fantastic if you attend ESUG⦠will you? Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jul 25, 2014, at 9:14 AM, rosariosm <rosariosantamarina1@gmail.com> wrote:
Hi Alexandre,
Yes, that solution seems to work fine. Right now i'm working at other things but i could do the exporter later. It will be useful for everyone. Arturo and I don't think that our work is ready for Esug, but we could present it next year, who knows. Thanks! It's a lot of hard work.
Cheers, Rosario
-- View this message in context: http://forum.world.st/export-roassal-views-tp4767944p4770079.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (2)
-
Alexandre Bergel -
rosariosm