コード例 #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)
        {
            Bitmap sourceImage = null;

            DA.GetData(0, ref sourceImage);
            int R = 0;

            DA.GetData(1, ref R);
            int F = 0;

            DA.GetData(2, ref F);

            DA.SetData(0, ImageShape.RotateFlipImage(sourceImage, R, F));
        }