THPDFPage.DrawQRCode Method
رفتار draw qrcode را برای گردش کار page drawing فراهم میکند. زمانی از آن استفاده کنید که خانوادهٔ API اطراف به کنترل صریح بر اشیای PDF، محتوای صفحه، منابع، سازگاری یا تشخیص نیاز دارد
اعلان
function DrawQRCode(const Data: AnsiString; X, Y: Single; ModuleSize: Single= 2; ECLevel: THPDFQRECLevel= qrM; Color: TColor= clBlack): Integer;
واحد
HPDFDoc
پارامترها
| نام | هدف |
|---|---|
Data | Raw byte payload embedded or validated by this API |
X | Page coordinate or size value expressed in the current HotPDF coordinate space |
Y | Page coordinate or size value expressed in the current HotPDF coordinate space |
ModuleSize | ورودی استفادهشده توسط DrawQRCode |
ECLevel | Version, conformance, or nesting level used by the workflow |
Color | Color component or color value used by the painting or resource operation |
مقدار بازگشتی
یک مقدار Integer بازمیگرداند
یادداشتهای استفاده
- Use this API in the page drawing workflow before the affected page, resource, field, or catalog object is finalised
- نام اشیا، نام فیلدها، نام منابع و handleهای بازگشتی را تا نهاییسازی سند پایدار نگه دارید
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak