SetBlackWhite

  Functions >

SetBlackWhite

Previous pageReturn to chapter overviewNext page

The SetBlackWhite function sets the black/white or colored mode of drawing the image.

 

Syntax:

 

DWORD SetBlackWhite(

  HANDLE hObject,

  int CMode

);

 

 

Parameters:

 

hObject

Identifies the CADImage object handle.

CMode

Specifies the drawing mode.

If CMode is equal to 1, then the CAD drawing object specified by hObject is drawn in the black/white mode.

If CMode is equal to 0, then the CAD drawing object specified by hObject is drawn in the colored mode.

 

       

Return Value:

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastErrorCAD.

 

Note:

In black/white mode the default color is defined by the SetDefaultColor function.

 

 

See Also

    CADCreate


© 2003-2024 CADSoftTools

Go to CAD DLL