示例#1
0
        // Constructors

        public Jpeg2000(Image image) : base(image)
        {
            if (image is Jpeg2000)
            {
                Jpeg2000 jpeg2000 = (Jpeg2000)image;
                numOfComps = jpeg2000.numOfComps;
                if (colorSpecBoxes != null)
                {
                    colorSpecBoxes = new List <ColorSpecBox>(jpeg2000.colorSpecBoxes);
                }
                isJp2 = jpeg2000.isJp2;
                if (bpcBoxData != null)
                {
                    bpcBoxData = (byte[])jpeg2000.bpcBoxData.Clone();
                }
            }
        }