DrawTextBoxMatrixA
Text, Page layout
Description
O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de DrawTextBoxMatrix e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode
This function is similar to the DrawTextBox function but the position/scaling/rotation is specified using a transformation matrix.
The vertical alignment can be set using the Options parameter, and the horizontal alignment can be set with the SetTextAlign function. The text will be word-wrapped to fit inside the bounding box.
Syntax
Delphi
Function DLDrawTextBoxMatrixA(InstanceID: Integer; Width, Height: Double; Text: PAnsiChar; Options: Integer; M11, M12, M21, M22, MDX, MDY: Double): Integer;
DLL
int DLDrawTextBoxMatrixA(int InstanceID, double Width, double Height, const char * Text, int Options, double M11, double M12, double M21, double M22, double MDX, double MDY);
Parameters
| Width | The width of the bounding box |
|---|---|
| Height | The height of the bounding box |
| Text | The text to draw on the page |
| Options | 0 = Alinhamento vertical ao centro 1 = Alinhamento vertical ao topo 2 = Alinhamento vertical à base 3 = Alinhamento vertical ao centro, sem moldagem de texto 4 = Alinhamento vertical ao topo, sem moldagem de texto 5 = Alinhamento vertical à base, sem moldagem de texto Matrix component |
| M11 | |
| M12 | Matrix component |
| M21 | Matrix component |
| M22 | Matrix component |
| MDX | Matrix component |
| MDY | Matrix component |
Return values
| 0 | The Options parameter was out of range, or the Width parameter was too small to contain any text The number of lines of text actually drawn |
|---|---|
| Non-zero | double M21, double M22, double MDX, double MDY); |