A colour image from a FILE element may be displayed as "black and white" in an IDF document using the MONOCHROME attribute.

MONOCHROME="threshold"

The threshold may take values in the range 0 to 255. Values less than the threshold are treated as black, values equal to or greater than the threshold are treated as white.

These examples show how changing the threshold values affect the rendering of the same image:

<FILE FILENAME="COMPASS.PNG" FILETYPE="PNG" />

<FILE FILENAME="COMPASS.PNG" FILETYPE="PNG" MONOCHROME="25" />

<FILE FILENAME="COMPASS.PNG" FILETYPE="PNG" MONOCHROME="50" />

<FILE FILENAME="COMPASS.PNG" FILETYPE="PNG" MONOCHROME="100" />

<FILE FILENAME="COMPASS.PNG" FILETYPE="PNG" MONOCHROME="200" />