Esempio n. 1
0
        private string GetPDF417Str(int resolutiondpi, string str)
        {
            PDF417Encoder encoder = new PDF417Encoder();

            encoder.aspectRatio  = this.aspectratio;
            encoder.codeColumns  = this.maxcols;
            encoder.codeRows     = this.maxrows;
            encoder.moduleheight = (int)Math.Round((double)((this.moduleheight * resolutiondpi) / 1000));
            encoder.modulewidth  = (int)Math.Round((double)((this.modulewidth * resolutiondpi) / 1000));
            encoder.errorLevel   = this.securitylevel;
            encoder.isTruncated  = this.truncated;
            return(encoder.Encode(str));
        }
Esempio n. 2
0
        private string GetPDF417Str()
        {
            PDF417Encoder encoder = new PDF417Encoder();

            encoder.aspectRatio  = this.aspectratio;
            encoder.codeColumns  = this.maxcols;
            encoder.codeRows     = this.maxrows;
            encoder.moduleheight = this.moduleheight;
            encoder.modulewidth  = this.modulewidth;
            encoder.errorLevel   = this.securitylevel;
            encoder.isTruncated  = this.truncated;
            return(encoder.Encode(this.texttoencode));
        }
 private string GetPDF417Str()
 {
     PDF417Encoder encoder = new PDF417Encoder();
     encoder.aspectRatio = this.aspectratio;
     encoder.codeColumns = this.maxcols;
     encoder.codeRows = this.maxrows;
     encoder.moduleheight = this.moduleheight;
     encoder.modulewidth = this.modulewidth;
     encoder.errorLevel = this.securitylevel;
     encoder.isTruncated = this.truncated;
     return encoder.Encode(this.texttoencode);
 }
 private string GetPDF417Str(int resolutiondpi, string str)
 {
     PDF417Encoder encoder = new PDF417Encoder();
     encoder.aspectRatio = this.aspectratio;
     encoder.codeColumns = this.maxcols;
     encoder.codeRows = this.maxrows;
     encoder.moduleheight = (int)Math.Round((double)((this.moduleheight * resolutiondpi) / 1000));
     encoder.modulewidth = (int)Math.Round((double)((this.modulewidth * resolutiondpi) / 1000));
     encoder.errorLevel = this.securitylevel;
     encoder.isTruncated = this.truncated;
     return encoder.Encode(str);
 }