DrawGS1DataBar
벡터 그래픽, 바코드
설명
파인더 패턴과 가드 바와 함께 13자리 또는 14자리 GTIN 페이로드를 인코딩하는 GS1 DataBar Omnidirectional(RSS-14) 1D 바코드 심볼을 그립니다
Delphi 퍼사드 메서드는 Omnidirectional 변형으로 고정되고, ActiveX와 DLL 진입점은 추가 Variant 선택자를 받습니다. 0만 지원되며 다른 값은 LastErrorCode 301과 함께 0을 반환합니다
구문
Delphi
Function TPDFlib.DrawGS1DataBar(Left, Top, Width, Height: Double; Const Text: WideString; Options: Integer): Integer;ActiveX
Function PDFlib::DrawGS1DataBar(Left As Double, Top As Double, Width As Double, Height As Double, Text As String, Variant As Long, Options As Long) As LongDLL
int DLDrawGS1DataBar(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t* Text, int Variant, int Options);
int DLDrawGS1DataBarA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text, int Variant, int Options);매개변수
| Left, Top, Width, Height | 현재 측정 단위와 좌표 원점 기준의 심볼 사각형 |
|---|---|
| Text | 인코딩할 13자리 또는 14자리 GTIN 페이로드 |
| Variant | ActiveX·DLL 진입점 전용. 0은 Delphi 퍼사드 메서드가 그리는 기본 Omnidirectional 심볼을 고릅니다 |
| Options | 바코드 렌더러에 전달되는 그리기 옵션 마스크 |
반환 값
| 0 | 바코드를 그리지 못했습니다. 페이로드가 유효한 GTIN이 아니거나 매개변수가 잘못됐습니다 |
|---|---|
| 1 | 바코드가 성공적으로 그려졌습니다 |
Delphi DrawGS1DataBarEx가 같은 Variant·Options 인자를 받습니다. 호환 계약은 Automation extensions를 참고하세요
참고 항목
DrawGS1DataBarEx, DrawBarcode, DrawAztecCode, DrawQRCode, GetBarcodeWidth