API Reference
Class
QrPixelDebug
Debug visualizations for pixel-based QR decoding.
Inheritance
- Object
- QrPixelDebug
Methods
public static Byte[] RenderPixels(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDebugMode mode, out Int32 widthPx, out Int32 heightPx, out Int32 stridePx, QrPixelDebugOptions options = null) #Returns:
Byte[]Renders a debug visualization to raw RGBA pixels (no PNG encoding).
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- widthPx System.Int32@
- heightPx System.Int32@
- stridePx System.Int32@
- options CodeGlyphX.QrPixelDebugOptions = null
RenderPng 2 overloads
public static Byte[] RenderPng(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDebugMode mode, QrPixelDebugOptions options = null) #Returns:
Byte[]Renders a debug visualization to a PNG byte array.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- options CodeGlyphX.QrPixelDebugOptions = null
RenderPng(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.QrPixelDebugMode mode, CodeGlyphX.QrPixelDebugOptions options) #Renders a debug visualization to a PNG byte array.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- options CodeGlyphX.QrPixelDebugOptions
RenderToFile 2 overloads
public static String RenderToFile(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDebugMode mode, String path, QrPixelDebugOptions options = null) #Returns:
StringRenders a debug visualization to a PNG file.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- path System.String
- options CodeGlyphX.QrPixelDebugOptions = null
public static String RenderToFile(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDebugMode mode, String directory, String fileName, QrPixelDebugOptions options = null) #Returns:
StringRenders a debug visualization to a PNG file under the specified directory.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- directory System.String
- fileName System.String
- options CodeGlyphX.QrPixelDebugOptions = null
RenderToStream 2 overloads
public static Void RenderToStream(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDebugMode mode, Stream stream, QrPixelDebugOptions options = null) #Returns:
VoidRenders a debug visualization to a PNG stream.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- stream System.IO.Stream
- options CodeGlyphX.QrPixelDebugOptions = null
RenderToStream(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.QrPixelDebugMode mode, System.IO.Stream stream, CodeGlyphX.QrPixelDebugOptions options) #Renders a debug visualization to a PNG stream.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- mode CodeGlyphX.QrPixelDebugMode
- stream System.IO.Stream
- options CodeGlyphX.QrPixelDebugOptions