Barcode to image?

7 posts, 0 answers
  1. Joh
    Joh avatar
    6 posts
    Member since:
    Jun 2010

    Posted 14 Jun 2012 Link to this post

    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?
  2. Daniel
    Daniel avatar
    175 posts
    Member since:
    Feb 2009

    Posted 14 Jun 2012 Link to this post

    I second this request.

    Daniel
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 15 Jun 2012 Link to this post

    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.
  5. Ahsen
    Ahsen avatar
    2 posts
    Member since:
    Aug 2011

    Posted 15 Jun 2012 Link to this post

    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.
  6. Bernard
    Bernard avatar
    21 posts
    Member since:
    Nov 2012

    Posted 30 Jul 2013 Link to this post

    Please count me in, i'm keen on implementing QR code for my projects
  7. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 30 Jul 2013 Link to this post

    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.
  8. Long
    Long avatar
    3 posts
    Member since:
    Mar 2015

    Posted 23 Jun 2015 Link to this post

    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

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017