I want to know how edit settings in EA programmatically in an addin.
I already have a functioning addin, which creates a new image of the diagram each time it is changed, overwriting the old version. this is done in C# via this command:
projectInterface.PutDiagramImageToFile(GUID, path, 1);
However i want an image without padding and without the box in the upper leftmost corner, like this:

while this can be done by editing the settings, i want to persist the users settings, meaning that i will probably do the following:
- Record the setting
- Edit the setting
- Create the diagram image
- Edit the setting back to the original
so... How do i edit these settings? (preferences -> diagram -> diagram frames -> printed images AND diagram padding)
Ideas are also more than welcome :)
