Esempio n. 1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            object ImageObject  = null;
            string newImagePath = "";

            if (!DA.GetData <string>("New Image Path", ref newImagePath))
            {
                return;
            }
            if (!DA.GetData <object>("Image to modify", ref ImageObject))
            {
                return;
            }
            Image l = HUI_Util.GetUIElement <Image>(ImageObject);

            if (l != null)
            {
                HUI_Util.SetImageSource(newImagePath, l);
            }
        }