DrawSVGFromFile
גרפיקה וקטורית, SVG, קלט קובץ
תיאור
Loads an SVG file and draws its supported geometry inside a rectangular page area as native PDF paths
תחביר
Delphi
Function TPDFlib.DrawSVGFromFile(Left, Top, Width, Height: Double; Const FileName, AltText: WideString): Integer;ActiveX
Function PDFlib::DrawSVGFromFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, AltText As String) As LongDLL
int DLDrawSVGFromFile(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * FileName, const wchar_t * AltText);פרמטרים
| Left | Horizontal position of the destination rectangle |
|---|---|
| Top | Top edge of the destination rectangle |
| Width | Destination width in the current measurement units |
| Height | גובה היעד ביחידות המדידה הנוכחיות |
| FileName | Path to a UTF-8, UTF-16LE, or UTF-16BE SVG file no larger than 16 MiB |
| AltText | Accessible description used when automatic tagging opens a Figure structure element |
ערכי החזרה
מחזיר 1 כאשר מצוירת צורה וקטורית נתמכת אחת לפחות, או 0 כאשר לא ניתן לקרוא את הקובץ או שמקור ה-SVG שלו אינו תקף
הערות
תוכן הקובץ נכנס לאותו מנתח תחום ולאותו מטמון מקור-אחרון בהם משתמש DrawSVGלא נפתח אף משאב חיצוני שה-SVG מפנה אליו
The DLL
ה-variant של DLDrawSVGFromFileA מקבל את שם הקובץ ואת הטקסט החלופי לפי מצב ה-ANSI שהוגדר