Click here to Skip to main content
15,911,485 members

Comments by tMichu (Top 1 by date)

tMichu 12-Oct-23 10:17am View    
Hi, thank yourfor the quick reply - I have tried your solution but now I get "System.AccessViolationException" on method Encode.

My code is:
            Dim image_ean As SKImage
            image_ean = Barcode.DoEncode(Type.Code128, text, True, foreColor, backColor, CInt(PictureBox1.Width * 0.8), CInt(PictureBox1.Height * 0.8))
            Dim stdata As SKData
            stdata = image_ean.Encode // here I am getting an error
            Dim img As Image
            img = Image.FromStream(stdata.AsStream)
            PictureBox1.Image = img