protected override void Execute(CodeActivityContext context) { string message = Message.Get(context); int width = Width.Get(context); int height = Height.Get(context); Image image = QrCodeDrawer.Draw(message, width, height); Result.Set(context, image); }
protected override void Execute(CodeActivityContext context) { string path = Path.Get(context); string message = Message.Get(context); int width = Width.Get(context); int height = Height.Get(context); using (Image image = QrCodeDrawer.Draw(message, width, height)) { image.Save(path); } }