Gma.QrCodeNet.Encoder/Windows/Render/EncapsulatedPostScriptRenderer.cs
/// <summary>
/// Outputs the background unless it is defined as transparent. The background is used for light modules and quiet zone.
/// </summary>
/// <param name="matrix">The matrix to be rendered</param>
/// <param name="stream">Output text stream</param>
Outputs the background unless it is defined as transparent. The background is used for light modules and quiet zone.
Outputs the background unless it is defined as transparent . The background is used for light modules and quiet zone .
private void OutputBackground(StreamWriter stream)
		{
			string strBackground = @"
% Create the background
{0} 255 div {1} 255 div {2} 255 div setrgbcolor
newpath 0 0 moveto W 0 rlineto 0 H rlineto W neg 0 rlineto closepath fill";
			if (LightColor.A != 0)
				stream.WriteLine(string.Format(strBackground,
					LightColor.R,
					LightColor.G,
					LightColor.B));
		}
private void OutputBackground ( StreamWriter stream ) { string strBackground = @"
% Create the background
{0} 255 div {1} 255 div {2} 255 div setrgbcolor
newpath 0 0 moveto W 0 rlineto 0 H rlineto W neg 0 rlineto closepath fill" ; if ( LightColor . A != 0 ) stream . WriteLine ( string . Format ( strBackground , LightColor . R , LightColor . G , LightColor . B ) ) ; }
Outputs the background unless it is defined as transparent.
Outputs the background unless it is defined as transparent .
stream
StreamWriter
Output text stream
Output text stream
matrix
The matrix to be rendered
The matrix to be rendered