DrawTextBoxMatrix

Tekst, Pagina-indeling

Beschrijving

Deze functie lijkt op de functie DrawTextBox, maar positie, schaling en rotatie worden opgegeven met een transformatiematrix

De verticale uitlijning kan met de parameter Options worden ingesteld en de horizontale uitlijning met de functie SetTextAlign. De tekst wordt op woordniveau afgebroken zodat deze binnen de bounding box past

Syntaxis

Delphi

Function TPDFlib.DrawTextBoxMatrix(Width, Height: Double; Const Text: WideString; Options: Integer; M11, M12, M21, M22, MDX, MDY: Double): Integer;

ActiveX

Function PDFlib::DrawTextBoxMatrix(Width As Double, Height As Double, Text As String, Options As Long, M11 As Double, M12 As Double, M21 As Double, M22 As Double, MDX As Double, MDY As Double) As Long

DLL

int DLDrawTextBoxMatrix(int InstanceID, double Width, double Height, const wchar_t * Text, int Options, double M11, double M12, double M21, double M22, double MDX, double MDY);

Parameters

WidthDe breedte van de bounding box
HeightDe hoogte van de begrenzingsdoos
TextDe tekst die op de pagina moet worden getekend
Options0 = Verticale uitlijning in het midden 1 = Verticale uitlijning bovenaan 2 = Verticale uitlijning onderaan 3 = Verticale uitlijning in het midden, zonder afbreken 4 = Verticale uitlijning bovenaan, zonder afbreken 5 = Verticale uitlijning onderaan, zonder afbreken Matrixcomponent
M11
M12Matrixcomponent
M21Matrixcomponent
M22Matrixcomponent
MDXMatrixcomponent
MDYMatrixcomponent

Retourwaarden

0De parameter Options was buiten bereik, of de parameter Width was te klein om tekst te bevatten Het aantal regels tekst dat daadwerkelijk is getekend
Non-zerodouble M21, double M22, double MDX, double MDY);