DrawHTMLTextMatrix

HTML 文字、頁面版面

描述

類似 DrawHTMLText 函式,但位置/縮放/旋轉以轉換矩陣指定

支援的 HTML 標籤細節請看附錄 A

語法

Delphi

Function TPDFlib.DrawHTMLTextMatrix(Width: Double; Const HTMLText: WideString; M11, M12, M21, M22, MDX, MDY: Double): Integer;

ActiveX

Function PDFlib::DrawHTMLTextMatrix(Width As Double, HTMLText As String, M11 As Double, M12 As Double, M21 As Double, M22 As Double, MDX As Double, MDY As Double) As Long

DLL

int DLDrawHTMLTextMatrix(int InstanceID, double Width, const wchar_t* HTMLText, double M11, double M12, double M21, double M22, double MDX, double MDY);
int DLDrawHTMLTextMatrixA(int InstanceID, double Width, const char* HTMLText, double M11, double M12, double M21, double M22, double MDX, double MDY);

參數

Width要繪入文字之區域的寬度
HTMLText要繪製的 HTML 文字
M11矩陣成分
M12矩陣成分
M21矩陣成分
M22矩陣成分
MDX矩陣成分
MDY矩陣成分

傳回值

文字繪製成功後傳回 1。Width 不為正數時傳回 0。