Create bitmap
The Create bitmap command is available when
- the focus is on the project tree, and
- a class diagram or state diagram is selected in the project tree and the context menu is open
Use the command to create a bitmap from of a class diagram or state diagram in BMP, PNG or JPG format and to save it in your file system.
When you execute the Create bitmap command, the associated dialog opens. This dialog offers the following configuration options.
Size of the longer side (in pixels):
- The value displayed refers to the edge length of the bitmap. Depending on the layout of the UML diagram, the bitmap is exported either in landscape or portrait format. If the diagram is in landscape format, the value contains the length of the bitmap. If the diagram is in portrait format, the value contains the height of the bitmap.
Save bitmap to desktop:
- : If this option is enabled, the object name is used as the file name, e.g. "FB_UML_SC.bmp" for an object with the name "FB_UML_SC". The BMP format is used as the file type.
- If you confirm the setting with [ OK ], the bitmap is saved on the desktop.
- Use [ Cancel ] to terminate the dialog without saving.
- : The name, directory and format of the bitmap can be edited.
- Confirming the setting with [ OK ] opens the standard dialog for saving a file. Enter a directory and file name there, select BMP, PNG or JPG as the format and exit the dialog with [ Save ]. The bitmap is saved in your file system.
Access by Automation Interface:
The Create bitmap command is reachable using the ConsumeXML method on the POU node via Automation Interface.
<TreeItem>
<PlcPouDef>
<Commands>
<CreateBitmapCommand>
<Active>true</Active>
<Parameters>
<FileName>d:\tmp\Bitmap.png</FileName>
<Width>1200</Width>
<Height>-1</Height> (* 1 adapts the height to the width to keep the ratio;
alternatively, you can enter a fix height which might deform the bitmap *)
</Parameters>
</CreateBitmapCommand>
</Commands>
</PlcPouDef>
</TreeItem>