コード例 #1
0
ファイル: mModifyFlatten.cs プロジェクト: shapediver/Aviary
        public mModifyFlatten(Bitmap ForeImage, System.Drawing.Color BackColor)
        {
            Bitmap InputBitmap = (Bitmap)ForeImage.Clone();

            LayerA = new mLayerImage(InputBitmap, 0, 100);


            mQuickComposite Comp = new mQuickComposite(InputBitmap, new mModifiers(), new wColor(BackColor));

            ModifiedBitmap = Comp.ModifiedBitmap;
        }
コード例 #2
0
ファイル: AssignLayer.cs プロジェクト: shapediver/Aviary
        /// <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)
        {
            // Declare variables
            IGH_Goo        X = null;
            int            M = 0;
            int            T = 100;
            List <IGH_Goo> F = new List <IGH_Goo>();

            // Access the input parameters
            if (!DA.GetData(0, ref X))
            {
                return;
            }
            if (!DA.GetData(1, ref M))
            {
                return;
            }
            if (!DA.GetData(2, ref T))
            {
                return;
            }

            Bitmap A = new Bitmap(10, 10);

            if (X != null)
            {
                X.CastTo(out A);
            }
            Bitmap B = (Bitmap)A.Clone();

            mLayer LayerObject = new mLayerImage(B, M, (byte)T);

            wObject W = new wObject(LayerObject, "Macaw", LayerObject.Type);


            DA.SetData(0, W);
        }