new QDColor(fgColor[0] / 255f, fgColor[1] / 255f, fgColor[2] / 255f),
new QDColor(bgColor[0] / 255f, bgColor[1] / 255f, bgColor[2] / 255f),
QDConstants.teJustLeft, textBox, dfFlag, QDFont.getFNum(fontName), 0, 0,
QDColor.white, Math.round(duration * movie.getTimeScale()));
textMedia.endEdits();
textTrack.insertMedia(Math.round(start * movie.getTimeScale()), 0,
textMedia.getDuration(), 1);
// position the text track to (x, y)
Matrix mat = new Matrix();
mat.rect(new QDRect(0, 0, TEXT_TRACK_WIDTH, TEXT_TRACK_HEIGHT),