API Reference
Class
OtpQrHeuristics
Static heuristic checks for OTP QR rendering parameters. These checks do not render or decode the output.
Inheritance
- Object
- OtpQrHeuristics
Methods
public static OtpQrHeuristicReport Evaluate(QrCode qr, QrPngRenderOptions opts, Boolean requireHighEcc = true) #Returns:
OtpQrHeuristicReportEvaluates static OTP QR heuristics for an encoded QR code and render options.
Parameters
- qr CodeGlyphX.QrCode
- opts CodeGlyphX.Rendering.Png.QrPngRenderOptions
- requireHighEcc System.Boolean = true
public static Double GetContrastRatio(Rgba32 foreground, Rgba32 background) #Returns:
DoubleComputes a contrast ratio between two colors (1.0..21.0).
Parameters
- foreground CodeGlyphX.Rendering.Png.Rgba32
- background CodeGlyphX.Rendering.Png.Rgba32
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object