Create bitmap

The Create bitmap command is available when

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

Save bitmap to desktop:

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>