ImgDoc_CreateNew

Create a reference to a new, empty image document.
ImgDoc_CreateNew({options}) ➔ imgDocRef
options Object Options.
imgDocRef Text The image document reference.

Create a reference to a new, empty image document.

The optional optionsJSON parameter is a 4D object that may be used to specify the format of the new document:

Property name Type Default Description
Format String TIFF The format ID of the new document. Any of the formats supported by Q2Pix may be used.

The image document reference is returned in imgDocRef. The caller must release the document reference when no longer needed with a call to ImgObj_Release, otherwise there will be a memory leak.

Note

This method is a wrapper for the ImgDoc_CreateNew_JSN plug-in method.