Clipboard SetImage


Node Information
Clears Clipboard and adds Image.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
SetImage IN RUN MULTIPLE FALSE FALSE
FileList IN Image ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Clipboard
{
    [IsNode("SetImage")]
    public class SetImage : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "SetImage");
        Port img = new Port(PortType.IN, typeof(System.Drawing.Image), AcceptsLinks.ONE, "FileList");
        public SetImage()
        {
            Name = "Clipboard SetImage";
            AddPort(run);
            AddPort(img);
            Information = "Clears Clipboard and adds Image.";
        }
        public override void UpdateResults()
        {
            run.Instructions = "Clipboard.SetImage(" + GetValue(img) + ");";
        }
    }
}