New

_BinaryNew, _ImageNew, NewDocumentBin, NewDocumentMono, NewDocumentRGB

NewDocumentBin

Description 

 NewDocumentBin(
   char  DocName,
   int  Width,
   int  Height,
   int  ValM
);

This function creates a new binary document with the specified name, size, and mask value.

Parameters

char DocName

Name of the newly created document.

int Width

Image width in pixels.

int Height

Image height in pixels.

int ValM

The initial mask value.

0

Empty binary document

1

Filled binary document

NewDocumentMono

Description 

 NewDocumentMono(
   char  DocName,
   int  Width,
   int  Height,
   int  ColorDepth,
   int  ValI
);

This function creates a new mono document with the specified parameters.

Parameters

char DocName

Name of the newly created document.

int Width

Image width in pixels.

int Height

Image height in pixels.

int ColorDepth

Color bit depth. Possible values are 8, 10, 12 and 16.

int ValI

Image background intensity.

See Also 
NewDocumentRGB, _ImageNew

NewDocumentRGB

Description 

 NewDocumentRGB(
   char  DocName,
   int  Width,
   int  Height,
   int  ColorDepth,
   int  ValR,
   int  ValG,
   int  ValB
);

This function creates a new document with the specified parameters.

Parameters

char DocName

Name of the newly created document.

int Width

Image width in pixels.

int Height

Image height in pixels.

int ColorDepth

Color bit depth. Possible values are 8, 10, 12 and 16.

int ValR

Red component of the background color.

int ValG

Green component of the background color.

int ValB

Blue component of the background color.

See Also 
NewDocumentMono, _ImageNew

_BinaryNew

Description 

 _BinaryNew();

This function displays the New Binary Document dialog window. It enables you to create a new blank image containing only the binary layer.

_ImageNew

This function runs the File > New command.

Description 

 _ImageNew();

This function creates a new image. It displays the New Image dialog box.