Beispiel #1
0
        public ActionResult Image(ServerInformation serverInformation)
        {
            Bitmap Image       = Barcode.QRcode(serverInformation.URL + "}.{" + serverInformation.Place);
            var    bitmapBytes = Barcode.BitmapToBytes(Image);

            return(File(bitmapBytes, "image/jpeg"));
        }
Beispiel #2
0
        public ActionResult Image(Guid id)
        {
            Bitmap Image       = Barcode.QRcode(id.ToString());
            var    bitmapBytes = Barcode.BitmapToBytes(Image);

            return(File(bitmapBytes, "image/jpeg"));
        }