Ejemplo n.º 1
0
        void Process()
        {
            CreateBufferIfNeeded();

            processor.TileX   = 1;
            processor.TileY   = 1;
            processor.Radius  = pradius;
            processor.Outline = poutline;

            processor.Process(width, height, null, buffer);
            processor.Complete();

            //have to do this to tile properly
            previewProcessor.TileX = tileX;
            previewProcessor.TileY = tileY;

            previewProcessor.Process(width, height, buffer, buffer);
            previewProcessor.Complete();

            previewProcessor.TileX = 1;
            previewProcessor.TileY = 1;

            Updated();
            Output.Data = buffer;
            Output.Changed();
        }
Ejemplo n.º 2
0
        void Process()
        {
            CreateBufferIfNeeded();

            float pradius  = radius;
            float poutline = outline;

            if (ParentGraph != null && ParentGraph.HasParameterValue(Id, "Radius"))
            {
                pradius = Convert.ToSingle(ParentGraph.GetParameterValue(Id, "Radius"));
            }
            if (ParentGraph != null && ParentGraph.HasParameterValue(Id, "Outline"))
            {
                poutline = Convert.ToSingle(ParentGraph.GetParameterValue(Id, "Outline"));
            }

            processor.TileX   = 1;
            processor.TileY   = 1;
            processor.Radius  = pradius;
            processor.Outline = poutline;

            processor.Process(width, height, null, buffer);
            processor.Complete();

            //have to do this to tile properly
            previewProcessor.TileX = tileX;
            previewProcessor.TileY = tileY;

            previewProcessor.Process(width, height, buffer, buffer);
            previewProcessor.Complete();

            previewProcessor.TileX = 1;
            previewProcessor.TileY = 1;

            Updated();
            Output.Data = buffer;
            Output.Changed();
        }