bdeSaveBlockAsImage

Saves block to pathname as an image. Must be saved as .png, .jpg, or .jpeg. block is of type hwscpHyperBlock. Block must be inline. This means the block is not included in the library system.

Syntax

bdeSaveBlockAsImage(block, pathname);

Inputs

block
Block to save as an image.
Type: block
pathname
Path to save the block to.
Type: string

Examples

Save a block in a diagram as an image:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(d);
          bdeSaveBlockAsImage(block, 'C:\Users\user\testFolder/test.jpg');