THPDFPage.DrawBarcode

THPDFPage

 

ด้านบน  ก่อนหน้า  ถัดไป

วาดบาร์โค้ดที่กำหนดโดยประเภท พิกัด ขนาด และสี

 

Delphi syntax:

procedure DrawBarcode( BCType: THPDFBarcodeType; X, Y, Height, MUnit:Integer;

                   Angle: Single; Info: AnsiString; UseCheckSum: Boolean; BarColor, Color: TColor );  

 

C++ syntax:

void __fastcall DrawBarcode ( THPDFBarcodeType BCType, int X, int Y, int Height, int MUnit, float Angle,

                      AnsiString Info, bool UseCheckSum, Graphics::TColor BarColor, Graphics::TColor Color);

 

คำอธิบาย

ใช้ DrawBarcode เพื่อวาดบาร์โค้ดที่ระบุประเภท (BCType), พิกัด (X, Y), ขนาดแนวตั้ง (Height), ความกว้างหนึ่งหน่วย (MUnit), มุมหมุน (Angle), ค่า (Info), สีหมึกและสีพื้นหลัง (BarColor, Color) ตั้งค่า UseCheckSum เป็น true เพื่อเพิ่มค่า checksum ทั้งนี้ THPDFBarcodeType คือประเภทของบาร์โค้ด ซึ่งค่าที่เป็นไปได้ของ THPDFBarcodeType ได้แก่