} // else if (fontOptions.equalsIgnoreCase("bolditalicunderline"))
// turn on time code display, set colors
timeCoder.setFlags(timeCoder.getFlags() | StdQTConstants.tcdfShowTimeCode,
StdQTConstants.tcdfShowTimeCode);
TCTextOptions tcTextOptions = timeCoder.getDisplayOptions();
tcTextOptions.setTXSize(fontSize);
tcTextOptions.setTXFace(style);
tcTextOptions.setTXFont(QDFont.getFNum(fontName));
tcTextOptions.setForeColor(new QDColor(fgColor[0] / 255f, fgColor[1] / 255f,
fgColor[2] / 255f));
// if transparency is indicated, set background color to a special value
if (bgColor[0] == -1)
{
tcTextOptions.setBackColor(new QDColor(0.1f, 0.7f, 0.43f));
} // if (bgColor[0] == -1)
else
{
tcTextOptions.setBackColor(new QDColor(bgColor[0] / 255f,
bgColor[1] / 255f, bgColor[2] / 255f));
} // else
timeCoder.setDisplayOptions(tcTextOptions);
// set up a sample as a 4-byte array in a QTHandle