示例#1
0
        public static void GetColorTransform(Movie movie)
        {
            int            colorTransformId = movie.colorTransformId;
            ColorTransform colorTransform;

            if ((colorTransformId & (int)Constant.COLORTRANSFORM_FLAG) == 0)
            {
                AlphaTransform alphaTransform =
                    movie.lwf.data.alphaTransforms[colorTransformId];
                colorTransform = new ColorTransform(1, 1, 1, alphaTransform.alpha);
            }
            else
            {
                colorTransformId &= ~(int)Constant.COLORTRANSFORM_FLAG;
                colorTransform    = movie.lwf.data.colorTransforms[colorTransformId];
            }

            movie.SetColorTransform(colorTransform);
        }
示例#2
0
        public static void GetColorTransform(Movie movie)
        {
            int colorTransformId = movie.colorTransformId;
            ColorTransform colorTransform;
            if ((colorTransformId & (int)Constant.COLORTRANSFORM_FLAG) == 0) {
            AlphaTransform alphaTransform =
                movie.lwf.data.alphaTransforms[colorTransformId];
            colorTransform = new ColorTransform(1, 1, 1, alphaTransform.alpha);
            } else {
            colorTransformId &= ~(int)Constant.COLORTRANSFORM_FLAG;
            colorTransform = movie.lwf.data.colorTransforms[colorTransformId];
            }

            movie.SetColorTransform(colorTransform);
        }