MKI_FileWriteColor (File I/O) Changed in Version 6.60

www.CAD6.com

C++ Syntax

void

MKI_FileWriteColor(

 MKI_COLORVALUE f_cColor,

 MKI_COLORMODEL f_cColorMode );

 

Writes a color definition to the current write cache.

 

Parameters

Color

[MKI_COLORVALUE] Definition of the color to be written.

ColorMode New in Version 6.60

[MKI_COLORMODEL] Color mode of the color to be written (see MKI_COLORMODE_*). If the color mode if 0xFF, the color will be written without color mode information in RGB100 format.

 

Return Value

None, but if a write error occurs, the return value of MKI_FileWriteError will be set to true. Once a write error occurred, all further calls to any write procedure will be ignored (i.e. return false).

 

Comment

This procedure relies on a high-performance write cache previously established by either MKI_FileWriteInitNull, MKI_FileWriteInitDisk or MKI_FileWriteInitMemory. As a result, it will fail if this cache is currently not activated!

 

The behavior of this procedure depends on the settings of MKI_FileWriteDelimiters and MKI_FileWriteZeros!

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH