setMode

Int setMode(int iMode, COLORREF iModeColor)

The setMode() func allows barcode images with human readable text to be created using different colours for the bars and the text, according to the following modes:

iMode=0 (default) Bars and text are created normally

iMode=1 Bars are created without the text, and the bar colour is that specified in the forecolor member of the BARCODE structure.

iMode=2 Text is created without the bars – using the text colour specified in the iModeColor parameter.

iMode=3 Bars are created normally using the forecolor member of the BARCODE structure aand the human readable text is created using the colour specified in the iModeColor parameter.

Note: After using a mode other than 0 you need to reset to mode 0 using

setMode(0,(COLORREF)0);

if you wish to create normal (single colour) barcodes.

 

 

More:

Notes on Metafiles