public static CXFormWithAlpha cxFormWithAlpha(double alphaMultiplier,
double redMultiplier, double greenMultiplier,
double blueMultiplier, double alphaOffset, double redOffset,
double greenOffset, double blueOffset)
{
CXFormWithAlpha c = new CXFormWithAlpha();
c.alphaMultTerm = fixed8(alphaMultiplier);
c.redMultTerm = fixed8(redMultiplier);
c.greenMultTerm = fixed8(greenMultiplier);
c.blueMultTerm = fixed8(blueMultiplier);
c.alphaAddTerm = (int)(alphaOffset);