コード例 #1
0
ファイル: JB2Shape.cs プロジェクト: rodrigoieh/DjvuNet
        public virtual JB2Shape Duplicate()
        {
            JB2Shape retval = new JB2Shape
            {
                Bitmap   = Bitmap?.Duplicate(),
                Parent   = Parent,
                UserData = UserData
            };

            // TODO test bitmap copy logic

            return(retval);
        }
コード例 #2
0
        public virtual JB2Shape Duplicate()
        {
            JB2Shape retval = new JB2Shape
            {
                Bitmap   = Bitmap?.Duplicate(),
                Parent   = Parent,
                UserData = UserData
            };

            // TODO test bitmap copy logic

            //if (retval.Bitmap != null)
            //    retval.Bitmap = retval.Bitmap.Duplicate();

            return(retval);
        }