codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.59k stars 1.09k forks source link

[WIP/QRCoder2] Use of System.Drawing.Primitives #549

Open codebude opened 4 months ago

codebude commented 4 months ago

Note: This issue is part of the planning of version 2 of the QRCoder. The meta-issue can be found here. These comments have been copied into this issue here, with the comments marked as such. If comments on the topic of this issue already exist in the meta thread, they have been copied here, naming the authors.

Topic

How do we handle renderers that use primitives like Size, Point, etc. from System.Drawing.Primitives but nothing from System.Drawing.Common? Do we also rebuild them to get rid of System.Drawing completely or do we leave them because System.Drawing.Primitives is still available on all platforms. If replace: With what? Primitives from another library or define our own classes/structures?

codebude commented 4 months ago

I would use System.Drawing.Primitives if/as desired, as it creates no dependencies except when targeting .NET Standard 1.3.

Originally posted by @Shane32 here.