FinderPattern

29 views
Skip to first unread message

drdiegoj...@gmail.com

unread,
Oct 31, 2020, 9:29:41 PM10/31/20
to zxing
Hi
I am trying to get the FInderPattern points into an array but no matter what kind of data type i write it always shows me i can´t convert the int,double,etc into ZXing.QrCode.Internal.FinderPattern[*,*] into [*,*]

Thank you for your help.
Diego

Diego J Mitchell

unread,
Nov 1, 2020, 1:26:15 PM11/1/20
to zxing
  I don´t know what kind of data type are the three finder patterns but I think I am getting closer. 

private void timer1_Tick(object sender, EventArgs e)
        {
            if (pictureBox1.Image != null)
            {
                BarcodeReader barcodeReader = new BarcodeReader();
                Result result = barcodeReader.Decode((Bitmap)pictureBox1.Image);

                if (result != null)
                {
                    ResultPoint[] location1 = result.ResultPoints;
                    txtLocation1.Text = location1[0].ToString();
                    txtLocation2.Text = location1[1].ToString();
                    txtLocation3.Text = location1[2].ToString();
                    txtLocation4.Text = location1[3].ToString ();

                     ZXing.QrCode.Internal.FinderPattern[,] Points = new ZXing.QrCode.Internal.FinderPattern[3,2];

                    txtPoint1.Text = Points[0, 0].ToString();                  *here i have an error
                    txtPoint2.Text = Points[1, 0].ToString();
                    txtPoint3.Text = Points[2, 0].ToString(


*          I have this error, that I think is from C# 
System.NullReferenceException: "Reference to object no established like an instance of an object"

Any help?

--
You received this message because you are subscribed to the Google Groups "zxing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zxing/a19e40b9-a4c8-4809-a896-95256f638887n%40googlegroups.com.

Sean Owen

unread,
Nov 1, 2020, 2:08:35 PM11/1/20
to zxing
You're actually asking about another project, zxing.NET 
Reply all
Reply to author
Forward
0 new messages