Ejemplo n.º 1
0
        public virtual JB2Shape Duplicate()
        {
            JB2Shape retval = new JB2Shape
            {
                Bitmap   = Bitmap?.Duplicate(),
                Parent   = Parent,
                UserData = UserData
            };

            // TODO test bitmap copy logic

            return(retval);
        }
Ejemplo n.º 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);
        }