THPDFPage.DirectDrawBarcode Method

把線性條碼以填色矩形直接畫進頁面內容,拉伸填滿指定的方框。與 DrawBarcode 不同,它不經過 canvas,條碼寬度取自 Width 引數而不是模組尺寸

宣告

procedure DirectDrawBarcode(X, Y, Width, Height: Single; const Text : AnsiString; BarcodeType : Integer);

單元

HPDFDoc

參數

名稱用途
X條碼左緣的頁面座標
Y條碼頂緣的頁面座標
Width條碼圖樣的寬度;不含靜默區
Height條的高度。POSTNET 的短條涵蓋下方 40%
Text要編碼的資料(見使用注意事項)
BarcodeTypeTHPDFBarcodeType 值的序號:0 Interleaved 2 of 5、1 Industrial 2 of 5、2 Matrix 2 of 5、3 Code 39、4 Code 39 Extended、5 到 7 Code 128 A、B 與 C、8 Code 93、9 Code 93 Extended、10 MSI、11 POSTNET、12 Codabar、13 EAN-8、14 EAN-13、15 UPC-A、16 與 17 UPC-E(number system 0 與 1)、18 與 19 兩位與五位加掛條碼、20 到 22 GS1-128(code set A、B 或 C)。其他值一律畫 Code 39

傳回值

此成員不會傳回值

使用注意事項

相關 API