C# Class Disco.Services.Documents.QRCodeBinaryEncoder

ファイルを表示 Open project: garysharp/Disco

Public Methods

Method Description
Encode ( byte Content, int Width, int Height ) : byte[]

Private Methods

Method Description
ChooseVersion ( int RequiredBits, ErrorCorrectionLevel &ECLevel ) : Version
chooseMaskPattern ( BitArray bits, ErrorCorrectionLevel ecLevel, ZXing version, ByteMatrix matrix ) : int
generateECBytes ( byte dataBytes, int numEcBytesInBlock ) : byte[]
getNumDataBytesAndNumECBytesForBlockID ( int numTotalBytes, int numDataBytes, int numRSBlocks, int blockID, int &numDataBytesInBlock, int &numECBytesInBlock ) : void
interleaveWithECBytes ( BitArray bits, int numTotalBytes, int numDataBytes, int numRSBlocks ) : BitArray
scaleMatrix ( byte matrix, int Width, int Height ) : byte[]

Method Details

Encode() public static method

public static Encode ( byte Content, int Width, int Height ) : byte[]
Content byte
Width int
Height int
return byte[]