Esempio n. 1
0
        /// <summary>
        /// Creates an exact copy of this <see cref='ImageAttributes'/>.
        /// </summary>
        public object Clone()
        {
            IntPtr clone = IntPtr.Zero;

            int status = Gdip.GdipCloneImageAttributes(
                new HandleRef(this, nativeImageAttributes),
                out clone);

            if (status != Gdip.Ok)
            {
                throw Gdip.StatusException(status);
            }

            return(new ImageAttributes(clone));
        }