// Get a painter for the image. This is the background (the initial image).
QPixmap pix = new QPixmap(f.fileName());
QPixmap hilightedPix = new QPixmap(pix.size());
QPainter p = new QPainter(hilightedPix);
p.drawPixmap(0,0, pix);
// Create a transparent pixmap. The only non-transparent
// piece is the hilight that will be overlayed to hilight text no the background
QPixmap overlayPix = new QPixmap(pix.size());
overlayPix.fill(QColor.transparent);