private string GetDataMatrixStr()
 {
     DataMatrixEncoder encoder = new DataMatrixEncoder();
     encoder.targetSizeID = this.datamatrixsize;
     encoder.m_nPreferredEncodation = this.encodationmode;
     return encoder.Encode(this.texttoencode);
 }
 private string GetDataMatrixStr(string str)
 {
     DataMatrixEncoder encoder = new DataMatrixEncoder();
     encoder.targetSizeID = (int)this.datamatrixsize;
     encoder.m_nPreferredEncodation = (int)this.encodationmode;
     encoder.binaryEncode = this.binaryEncode;
     return encoder.Encode(str);
 }