This is a migrated thread and some comments may be shown as answers.

Barcode to image?

6 Answers 411 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
Joh
Top achievements
Rank 1
Joh asked on 14 Jun 2012, 09:43 PM
Hello,
Is there a method to convert the Barcode into a solid image rather then use javascript & css?  This would be ideal in scenarios where you want to e-mail the Barcode to the end-user and not have to bother with embedding js or having them visit the site?

6 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
Iron
answered on 15 Jun 2012, 03:35 AM
I second this request.

Daniel
0
Vasil
Telerik team
answered on 15 Jun 2012, 12:06 PM
Hi,

We did a lot of research before choose showing the barcode in SVG and VML instead of sending an image. The problem with the image is that it could not be scalable well and could look blurred on re-size which make it non-scannable. In the same time in high enough resolution it gets way bigger in size. In this direction we are working on implementing QR code for the next release. Later we could think of making 2 output modes: the current one and image. However this is not confirmed yet and it depends on how many requests we get and if it could be done in good quality.

Thank you for the feedback we really appropriate your opinion and real live scenario examples in which our controls are intended to be used.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ahsen
Top achievements
Rank 1
answered on 15 Jun 2012, 02:37 PM
It would be fine to keep it the way it is for the web but for other scenarios like e-mail is a great example to have it as an image.  Perhaps set the size to a fixed height and width based upon which encoding method was picked.  Then this barcode would work for many projects that I need this functionality in.  Else there isn't much difference between this and a js alternative.
0
Bernard
Top achievements
Rank 2
answered on 30 Jul 2013, 08:54 AM
Please count me in, i'm keen on implementing QR code for my projects
0
Vasil
Telerik team
answered on 30 Jul 2013, 10:35 AM
Hello Bernard,

Image rendering is already implemented. See this help topic for more information:
http://www.telerik.com/help/aspnet-ajax/barcode-outputtype.html

Regards,
Vasil
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Long
Top achievements
Rank 1
answered on 24 Jun 2015, 03:14 AM

If you want to create a barcode and save it as image in C#, the following codes may help you:

Linearbarcode = new Linear();//Create a barcode <br>barcode.Type = BarcodeType.CODE128;//Select barcode type <br>barcode.Data = "123456789";//Set barcode data <br>barcode.X = 1.0F;//Set x <br>barcode.Y = 60.0F;//Set y <br>barcode.Resolution = 96;//Set resolution <br>barcode.Rotate = Rotate.Rotate0;//Set rotate <br>REImagereImage = barcode.ToImage(); <br>reImage.Save(ImageType.PNG, @"c:\qr.png");

More info you can get from create barcode to images in c#.net application

Tags
Barcode
Asked by
Joh
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Iron
Vasil
Telerik team
Ahsen
Top achievements
Rank 1
Bernard
Top achievements
Rank 2
Long
Top achievements
Rank 1
Share this question
or