Пример #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 img = null;

            DA.GetData(0, ref img);
            Bitmap mask = null;

            DA.GetData(1, ref mask);

            DA.SetData(0, ImageMultiFilter.maskImage(img, mask));
        }
Пример #2
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)
        {
            List <Bitmap> sourceImage = new List <Bitmap>();

            DA.GetDataList(0, sourceImage);
            int Hor = 0;

            DA.GetData(1, ref Hor);
            int Ver = 0;

            DA.GetData(2, ref Ver);

            DA.SetData(0, ImageMultiFilter.OverlayImages(sourceImage, Hor, Ver));
        }
Пример #3
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 sourceImage1 = null;

            DA.GetData(0, ref sourceImage1);
            Bitmap sourceImage2 = null;

            DA.GetData(1, ref sourceImage2);
            Bitmap values = null;

            DA.GetData(2, ref values);

            DA.SetData(0, ImageMultiFilter.combineImages(sourceImage1, sourceImage2, values));
        }
Пример #4
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 below = null;

            DA.GetData(0, ref below);
            Bitmap over = null;

            DA.GetData(1, ref over);
            int mode = 0;

            DA.GetData(2, ref mode);

            DA.SetData(0, ImageMultiFilter.overlayMode(below, over, mode));
        }