Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
            }
        }