Skip to content

M_QRCoder_Core_PngByteQRCode_GetGraphic_1

Afonso Dutra Nogueira Filho edited this page Mar 28, 2024 · 2 revisions

GetGraphic(Int32, Byte[], Byte[], Boolean) Method

Creates 2-color PNG of the QR code, using 1-bit indexed color. Accepts 3-byte RGB colors for normal images and 4-byte RGBA-colors for transparent images.

Definition

Namespace: QRCoder.Core
Assembly: QRCoder.Core (in QRCoder.Core.dll) Version: 1.0.2+100b048b01076590efe500a3be242a5faeb43294
XMLNS for XAML: Not mapped to an xmlns.

C#

public byte[] GetGraphic(
	int pixelsPerModule,
	byte[] darkColorRgba,
	byte[] lightColorRgba,
	bool drawQuietZones = true
)

C++

public:
array<unsigned char>^ GetGraphic(
	int pixelsPerModule, 
	array<unsigned char>^ darkColorRgba, 
	array<unsigned char>^ lightColorRgba, 
	bool drawQuietZones = true
)

Parameters

  Int32
\[Missing <param name="pixelsPerModule"/> documentation for "M:QRCoder.Core.PngByteQRCode.GetGraphic(System.Int32,System.Byte[],System.Byte[],System.Boolean)"\]
  Byte[]
\[Missing <param name="darkColorRgba"/> documentation for "M:QRCoder.Core.PngByteQRCode.GetGraphic(System.Int32,System.Byte[],System.Byte[],System.Boolean)"\]
  Byte[]
\[Missing <param name="lightColorRgba"/> documentation for "M:QRCoder.Core.PngByteQRCode.GetGraphic(System.Int32,System.Byte[],System.Byte[],System.Boolean)"\]
  Boolean  (Optional)
\[Missing <param name="drawQuietZones"/> documentation for "M:QRCoder.Core.PngByteQRCode.GetGraphic(System.Int32,System.Byte[],System.Byte[],System.Boolean)"\]

Return Value

Byte[]
[Missing <returns> documentation for "M:QRCoder.Core.PngByteQRCode.GetGraphic(System.Int32,System.Byte[],System.Byte[],System.Boolean)"]

See Also

Reference

PngByteQRCode Class
GetGraphic Overload
QRCoder.Core Namespace

Clone this wiki locally