Book a Demo

Author Topic: How to get the image of diagram  (Read 3973 times)

fanweik

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to get the image of diagram
« on: November 25, 2009, 12:01:40 am »
Hello, all,
I am writing an Addin for Enterprise Architect with C#, and have a question, is it possible in EA through COM interface to get the raw image or jpg file of the diagram? If yes, which function in COM can I call to get it? If no, are there any other ways in C# code?

Thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to get the image of diagram
« Reply #1 on: November 25, 2009, 01:27:47 am »
see copy topic

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: How to get the image of diagram
« Reply #2 on: November 25, 2009, 09:22:23 am »
Refer to functions PutDiagramImageOnClipboard and PutDiagramImageToFile on the EA.Project object.
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/project_2.html