archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
927 stars 267 forks source link

[Feature request] Remove the white border of image when copy as image a view (Shift + Ctrl + C) #797

Open rvelter opened 2 years ago

rvelter commented 2 years ago

Because there is no way to have a transparent background (#731) , I add a black note behind the diagram to simulate a black background.

When we copy as image, there is always a white border/padding. Is there a way / or an option to remove this border to make copy / paste to content with non-white background ?

rvelter commented 2 years ago

And Happy New Year. My best wishes.

Phillipus commented 2 years ago

The 10 pixel border is hard-coded into this. I could remove that border in the code but that might break other users' usage of it (also used in reports). If anything, I think it would have to be an option in Preferences.

rvelter commented 2 years ago

Thanks for the answer. An option will be great, if done. Many thanks and have a nice day.

jbsarrodie commented 2 years ago

And Happy New Year. My best wishes.

Thank you! Best wishes too for this new year.

@Phillipus: IMHO the real issue is not the border but the fact that we force a white background (thus the need for a note to force another background color). Maybe the option should be in the view itself to define the background color, and then use this when exporting as an image.

@rvelter: Another option would be to export as SVG which doesn't have any background at all, and then to render it to PNG (or any other format) with the background color of your choice.