API Reference
QrPngLogoOptions
Options and pixel data for a centered logo overlay in a QR PNG.
Inheritance
- Object
- QrPngLogoOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method QrPngLogoOptions.FromPixels
- Method QrPngLogoOptions.FromPng
- Method QrPngLogoOptions.FromPngFile
- Property QrPngRenderOptions.Logo
Accepted by parameters
- Method QrPngRenderOptions.WithLogo
Constructors
public QrPngLogoOptions(Byte[] rgba, Int32 width, Int32 height) #Creates a logo option with a packed RGBA buffer.
Parameters
- rgba System.Byte[]
- width System.Int32
- height System.Int32
Methods
public static QrPngLogoOptions FromPixels(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt) #QrPngLogoOptionsCreates a logo option from a raw pixel buffer in BGRA/RGBA.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
public static QrPngLogoOptions FromPng(Byte[] png) #QrPngLogoOptionsCreates a logo option from a PNG (RGBA or RGB, non-interlaced).
Parameters
- png System.Byte[]
public static QrPngLogoOptions FromPngFile(String path) #QrPngLogoOptionsCreates a logo option from a PNG file.
Parameters
- path System.String
- PNG file path.
Returns
Logo options.
Inherited Methods
Properties
public Byte[] Rgba { get; } #Logo pixels in RGBA order, row-major, tightly packed.
public Double Scale { get; set; } #Maximum logo size relative to the QR area (excluding quiet zone).
public Int32 PaddingPx { get; set; } #Padding in pixels around the logo (filled with Background when DrawBackground is true).
public Boolean DrawBackground { get; set; } #Whether to draw a background plate behind the logo.
public Rgba32 Background { get; set; } #Background color for the logo plate.
public Int32 CornerRadiusPx { get; set; } #Optional corner radius for the background plate.