Creating image of diagram without description or padding in addin

Viewed 101

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);

This looks like this: Current image

However i want an image without padding and without the box in the upper leftmost corner, like this: Wanted image

while this can be done by editing the settings, i want to persist the users settings, meaning that i will probably do the following:

  1. Record the setting
  2. Edit the setting
  3. Create the diagram image
  4. 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 :)

1 Answers
Related