int cy = triblt.getCY();
int srcx = triblt.getSrcX();
int srcy = triblt.getSrcY();
int fgcolor = triblt.getForegroundColor();
int bgcolor = triblt.getBackgroundColor();
Brush brush = triblt.getBrush();
// convert to 24-bit colour
fgcolor = Bitmap.convertTo24(fgcolor);
bgcolor = Bitmap.convertTo24(bgcolor);