Giter Club home page Giter Club logo

Comments (6)

micjahn avatar micjahn commented on July 20, 2024

The .Net Assemblies at all doesn't export any functions which can be called with LoadLibrary/GetProcAdress or as externally declared function. As far as I know the freeimage.dll isn't a .Net asssembly.
Perhaps you will find some other solutions to call a .Net Assembly from VBA if you look at stackoverflow.com. Here is one example
https://stackoverflow.com/questions/37074533/how-to-call-net-methods-from-excel-vba
I only know the COM Interop way but the registration of the assembly is required.

On the other hand there are no plans to extend the options of the CommandLineEncoder. Feel free to provide a pull request which adds the functionality.

from zxing.net.

BobTB avatar BobTB commented on July 20, 2024

Thank you for the link! After a few hours with visualstudio (never ever used it before and never used the c# or whatever this language is) I came out with this, which when changed in commandlineencoder sample works as expected :

var x = ZXing.QrCode.Internal.ErrorCorrectionLevel.H;

var barcodeWriter = new BarcodeWriter
                                {
                                   Format = barcodeFormat,
                                  Options = new ZXing.QrCode.QrCodeEncodingOptions
                                                {
                                       CharacterSet = "ISO-8859-1",
                                       Width = 600,
                                        Height = 600,
                                        ErrorCorrection = x,
                                        QrVersion = 15                                                }
                                };

Now what I need to do is set:

  • ECI value to 000004. Does setting the charset change the ECI by itself?
  • Byte data (Mode Byte) - this one is killing me :(

from zxing.net.

micjahn avatar micjahn commented on July 20, 2024

ECI is only set if the selected character set differs from the default. The default is "ISO-8859-1". That means, no ECI is needed.
Byte Mode is selected automatically. You can't set it via options. It depends on the content. If you only encode numbers then numeric mode is selected. If you encode alphanumeric characters (table 5 of JISX0510:2004 (p.19)) then alphanumeric mode is used. Otherwise byte mode.

from zxing.net.

BobTB avatar BobTB commented on July 20, 2024

Thank you for explaining, so if I set it to ISO-8859-2 then ECI will be set to 000004 and I am good to go. Great.

from zxing.net.

BobTB avatar BobTB commented on July 20, 2024

One more question, do you perhaps know if there is some utility to display all this data from the QR code, i mean, ECI, Version, mask, encoding type, length etc...

from zxing.net.

micjahn avatar micjahn commented on July 20, 2024

Yes, ECI 4 is added. And no, sorry, don't any tool which fits your needs.

from zxing.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.