Giter Club home page Giter Club logo

Comments (5)

Tagliatti avatar Tagliatti commented on July 28, 2024 1

Hello, I hadn't seen that they killed System.Drawing.Common, I'll check which lib to use now.
Thanks for the report.

from netbarcode.

drusellers avatar drusellers commented on July 28, 2024

Hello, @Tagliatti did you make decision on the library? If so, I can try and put a PR together. I need .NET 6 on Linux support.

from netbarcode.

Tagliatti avatar Tagliatti commented on July 28, 2024

@drusellers I'm having a painting quality problem on image sharp and I still don't know how to solve it, if you can help, on the https://github.com/Tagliatti/NetBarcode/tree/net6 branch.

System.Drawing
System.Drawing

ImageSharp
ImageSharp

from netbarcode.

drusellers avatar drusellers commented on July 28, 2024

I pulled down the project, and will take a look. Note: I'm running dotnet 6 on an M1, so I'm working through some issues related to the libhostfxr.dylib it may take me a bit to track that down.

from netbarcode.

drusellers avatar drusellers commented on July 28, 2024

test

I'm not sure where the top line of single pixels is coming from, but my guess is its a similar configuration issue.

                while (pos < _encodedData.Length)
                {
                    if (_encodedData[pos] == '1')
                    {
                        var drawingOptions = new DrawingOptions
                        {
                            GraphicsOptions = new GraphicsOptions
                            {
                                Antialias = false
                            }
                        };

                        imageContext.DrawLines(drawingOptions, pen,
                            new PointF(pos * iBarWidth + shiftAdjustment + halfBarWidth, topLabelAdjustment),
                            new PointF(pos * iBarWidth + shiftAdjustment + halfBarWidth, _height + topLabelAdjustment)
                        );
                    }

                    pos++;
                }

from netbarcode.

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.