API Reference
Class
OtpQrSafety
Safety checks for OTP QR rendering parameters.
Inheritance
- Object
- OtpQrSafety
Methods
public static OtpQrSafetyReport Evaluate(QrCode qr, QrPngRenderOptions opts, Boolean requireHighEcc = true) #Returns:
OtpQrSafetyReportEvaluates OTP scan safety for a rendered QR code.
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