Example #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);
        }
Example #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);
            }
        }