Example #1
0
        /// <summary>
        /// Creates the image for the given display XML reader. For a given XmlReader,
        /// use the following code to create the view reader:
        /// new mxGraphViewImageReader(xmlReader, background, border, antiAlias);
        /// </summary>
        /// <param name="viewReader">Reader that contains the display XML.</param>
        /// <returns>Returns an image representing the display XML reader.</returns>
        public static Image Convert(mxGraphViewImageReader viewReader)
        {
            if (viewReader.Canvas is mxImageCanvas)
            {
                return(((mxImageCanvas)viewReader.Canvas).Destroy());
            }

            return(null);
        }
        /// <summary>
        /// Creates the image for the given display XML reader. For a given XmlReader,
        /// use the following code to create the view reader:
        /// new mxGraphViewImageReader(xmlReader, background, border, antiAlias);
        /// </summary>
        /// <param name="viewReader">Reader that contains the display XML.</param>
        /// <returns>Returns an image representing the display XML reader.</returns>
        public static Image Convert(mxGraphViewImageReader viewReader)
        {
            if (viewReader.Canvas is mxImageCanvas)
            {
                return ((mxImageCanvas) viewReader.Canvas).Destroy();
            }

            return null;
        }