public virtual int nbits() { // two step process to find maximum value of 6 numbers because "FSWFStream::MaxNum" takes only 4 arguments int max = SwfEncoder.maxNum(redMultTerm, greenMultTerm, blueMultTerm, redAddTerm); max = SwfEncoder.maxNum(greenAddTerm, blueAddTerm, max, 0); return(SwfEncoder.minBits(max, 1)); }
public override int nbits() { // FFileWrite's MaxNum method takes only 4 arguments, so finding maximum value of 8 arguments takes three steps: int maxMult = SwfEncoder.maxNum(redMultTerm, greenMultTerm, blueMultTerm, alphaMultTerm); int maxAdd = SwfEncoder.maxNum(redAddTerm, greenAddTerm, blueAddTerm, alphaAddTerm); int maxValue = SwfEncoder.maxNum(maxMult, maxAdd, 0, 0); return(SwfEncoder.minBits(maxValue, 1)); }
public virtual int nScaleBits() { return(SwfEncoder.minBits(SwfEncoder.maxNum(scaleX, scaleY, 0, 0), 1)); }
public virtual int nRotateBits() { return(SwfEncoder.minBits(SwfEncoder.maxNum(rotateSkew0, rotateSkew1, 0, 0), 1)); }
public virtual int nTranslateBits() { return(SwfEncoder.minBits(SwfEncoder.maxNum(translateX, translateY, 0, 0), 1)); }
public virtual int nbits() { int maxCoord = SwfEncoder.maxNum(xMin, xMax, yMin, yMax); return(SwfEncoder.minBits(maxCoord, 1)); }
public virtual int nMoveBits() { return(SwfEncoder.minBits(SwfEncoder.maxNum(moveDeltaX, moveDeltaY, 0, 0), 1)); }