public PdfImage ( PdfDocument Document, Pdf417Encoder Pdf417Encoder ) : this(Document) { // barcode width and height WidthPix = Pdf417Encoder.ImageWidth; HeightPix = Pdf417Encoder.ImageHeight; // black and white barcode image BWImage = Pdf417Encoder.ConvertBarcodeMatrixToPixels(); // image control for PDF417 code ReverseBW = true; SaveAs = SaveImageAs.BWImage; // write image stream to pdf file WriteObjectToPdfFile(); return; }
/// <summary> /// Load image fro Pdf417Encoder /// </summary> /// <param name="Pdf417Encoder">Pdf417 encoder</param> public void LoadImage ( Pdf417Encoder Pdf417Encoder ) { // barcode width and height WidthPix = Pdf417Encoder.ImageWidth; HeightPix = Pdf417Encoder.ImageHeight; // black and white barcode image BWImage = Pdf417Encoder.ConvertBarcodeMatrixToPixels(); // set save as to BWImage SaveAs = SaveImageAs.BWImage; ReverseBW = true; // write to output file WriteObjectToPdfFile(); // exit return; }