public DirectionalWarpNode(int w, int h, GraphPixelType p = GraphPixelType.RGBA) : base() { Name = "Directional Warp"; Id = Guid.NewGuid().ToString(); width = w; height = h; intensity = 1; tileX = tileY = 1; angle = 0; previewProcessor = new BasicImageRenderer(); processor = new DirectionalWarpProcessor(); blur = new BlurProcessor(); internalPixelType = p; input = new NodeInput(NodeType.Gray | NodeType.Color, this, "Image Input"); input1 = new NodeInput(NodeType.Gray, this, "Grayscale Gradients"); output = new NodeOutput(NodeType.Gray | NodeType.Color, this); Inputs.Add(input); Inputs.Add(input1); Outputs.Add(output); }
public override void Dispose() { base.Dispose(); if (processor != null) { processor.Release(); processor = null; } if (blur != null) { blur.Release(); blur = null; } }