Die Rechenregel fuer die Modulgroesse des Beleg-QR — rein, ohne Drucker.
Vorgeschichte: der native Weg druckte jedes Modul fest mit sechs Punkten. Ein Beleg-QR mit realer RKSV-Nutzlast hat 57 Module, mit Ruhezone also (57 + 8) * 6 = 390 Druckpunkte. Ein 58-mm-Drucker hat 384. Zu breit heisst bei den meisten Geraeten nicht "abgeschnitten", sondern gar kein QR — und das ist auf einem Pflichtbeleg der schlechteste aller Ausgaenge.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
compute(
{required int paperWidthDots, required int moduleCount, QrModuleSize moduleSize = QrModuleSize.auto}) → QrSizing -
Groesste Modulgroesse, mit der
moduleCountModule samt Ruhezone inpaperWidthDotspassen, gedeckelt durchmoduleSize. -
forPayload(
{required String payload, required int paperWidthDots, QrModuleSize moduleSize = QrModuleSize.auto}) → QrSizing -
Wie compute, nur mit der Modulanzahl aus
payload. -
moduleCount(
String payload) → int -
Modulanzahl, die
payloadbei Fehlerkorrektur M braucht.
Constants
- exceptionModuleDots → const int
- Ausnahme, wenn minModuleDots nicht passt – gemeldet, nicht still.
- maxModuleDots → const int
-
Obergrenze des Druckbefehls in diesem Stack (
QRSize.size1..size8). - minModuleDots → const int
- Untergrenze: 4 Punkte sind bei 203 dpi rund 0,5 mm je Modul.
- quietZoneModules → const int
- Ruhezone je Seite, in Modulen (QR-Norm).