/// <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) { Bitmap img = null; DA.GetData(0, ref img); Color C = Color.White; DA.GetData(1, ref C); int X = 0; DA.GetData(2, ref X); int Y = 0; DA.GetData(3, ref Y); double S = 0; DA.GetData(4, ref S); int R = 2; DA.GetData(5, ref R); double O = 0.5; DA.GetData(6, ref O); Tuple <Bitmap, Bitmap> myResult = ImageFilter.DropShadow(img, X, Y, C, Convert.ToSingle(S), R, Convert.ToSingle(O)); DA.SetData(0, myResult.Item1); DA.SetData(1, myResult.Item2); }