private void Node_OnUpdate(Nodes.Node n) { /*byte[] src = n.GetPreview(512, 512); * * if (src != null) * { * RawBitmap bitmap = new RawBitmap(512, 512, src); * * Histogram.GenerateHistograph(bitmap); * }*/ vw = n.Width; vh = n.Height; Invalidate(); }
public void OnUpdate(object obj) { if (!inputFromUser) { Nodes.Node n = obj as Nodes.Node; if (n != null) { byte[] result = n.GetPreview(512, 512); if (result != null) { fromBit = new RawBitmap(512, 512, result); Histogram.GenerateHistograph(fromBit); } } } inputFromUser = false; }
private void Node_OnTextureChanged(Nodes.Node n) { Invalidate(); }
private void Node_OnTextureRebuilt(Nodes.Node n) { vw = current.Node.Width; vh = current.Node.Height; Invalidate(); }