public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is CXFormWithAlpha))
            {
                CXFormWithAlpha cxFormWithAlpha = (CXFormWithAlpha)object_Renamed;

                if ((cxFormWithAlpha.alphaMultTerm == this.alphaMultTerm) && (cxFormWithAlpha.alphaAddTerm == this.alphaAddTerm))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
Exemplo n.º 2
0
		private CXFormWithAlpha decodeCxforma()
		{
			CXFormWithAlpha c = new CXFormWithAlpha();
			r.syncBits();
			c.hasAdd = r.readBit();
			c.hasMult = r.readBit();
			int nbits = r.readUBits(4);
			if (c.hasMult)
			{
				c.redMultTerm = r.readSBits(nbits);
				c.greenMultTerm = r.readSBits(nbits);
				c.blueMultTerm = r.readSBits(nbits);
				c.alphaMultTerm = r.readSBits(nbits);
			}
			if (c.hasAdd)
			{
				c.redAddTerm = r.readSBits(nbits);
				c.greenAddTerm = r.readSBits(nbits);
				c.blueAddTerm = r.readSBits(nbits);
				c.alphaAddTerm = r.readSBits(nbits);
			}
			return c;
		}