public final class EmfSmallTextOut extends EmfDrawingRecordType
The EMR_SMALLTEXTOUT record outputs a string.
If ETO_SMALL_CHARS is set in the fuOptions field, TextString contains 8-bit codes for characters, derived from the low bytes of 16-bit Unicode UTF16-LE character codes, in which the high byte is assumed to be 0. If ETO_NO_RECT is set in the fuOptions field, the Bounds field is not included in the record.
Constructor and Description |
---|
EmfSmallTextOut(EmfRecord source)
Initializes a new instance of the
EmfSmallTextOut class. |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBounds()
Gets or sets an optional, 128-bit WMF RectL object ([MS-WMF] section 2.2.2.19) that
specifies the bounding rectangle in device units.
|
int |
getCChars()
Gets or sets a 32-bit unsigned integer specifying the number of 16-bit characters in the
string.
|
float |
getExScale()
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the x-direction.
|
float |
getEyScale()
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the y-direction.
|
int |
getFuOptions()
Gets or sets a 32-bit unsigned integer specifying the text output options to use.
|
int |
getIGraphicsMode()
Gets or sets a 32-bit unsigned integer specifying the graphics mode, from the
GraphicsMode enumeration (section 2.1.16).
|
String |
getTextString()
Gets or sets a variable-length string that contains the text string to draw, in either
8-bit or 16-bit character codes, according to the value of the fuOptions field.
|
int |
getX()
Gets or sets a 32-bit signed integer specifying the x-coordinate of where to place the string.
|
int |
getY()
Gets or sets a 32-bit signed integer specifying the y-coordinate of where to place the string.
|
void |
setBounds(Rectangle value)
Gets or sets an optional, 128-bit WMF RectL object ([MS-WMF] section 2.2.2.19) that
specifies the bounding rectangle in device units.
|
void |
setCChars(int value)
Gets or sets a 32-bit unsigned integer specifying the number of 16-bit characters in the
string.
|
void |
setExScale(float value)
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the x-direction.
|
void |
setEyScale(float value)
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the y-direction.
|
void |
setFuOptions(int value)
Gets or sets a 32-bit unsigned integer specifying the text output options to use.
|
void |
setIGraphicsMode(int value)
Gets or sets a 32-bit unsigned integer specifying the graphics mode, from the
GraphicsMode enumeration (section 2.1.16).
|
void |
setTextString(String value)
Gets or sets a variable-length string that contains the text string to draw, in either
8-bit or 16-bit character codes, according to the value of the fuOptions field.
|
void |
setX(int value)
Gets or sets a 32-bit signed integer specifying the x-coordinate of where to place the string.
|
void |
setY(int value)
Gets or sets a 32-bit signed integer specifying the y-coordinate of where to place the string.
|
public EmfSmallTextOut(EmfRecord source)
Initializes a new instance of the EmfSmallTextOut
class.
source
- The source.public int getX()
Gets or sets a 32-bit signed integer specifying the x-coordinate of where to place the string.
public void setX(int value)
Gets or sets a 32-bit signed integer specifying the x-coordinate of where to place the string.
public int getY()
Gets or sets a 32-bit signed integer specifying the y-coordinate of where to place the string.
public void setY(int value)
Gets or sets a 32-bit signed integer specifying the y-coordinate of where to place the string.
public int getCChars()
Gets or sets a 32-bit unsigned integer specifying the number of 16-bit characters in the string. The string is NOT null-terminated.
public void setCChars(int value)
Gets or sets a 32-bit unsigned integer specifying the number of 16-bit characters in the string. The string is NOT null-terminated.
public int getFuOptions()
Gets or sets a 32-bit unsigned integer specifying the text output options to use. These options are specified by one or a combination of values from the ExtTextOutOptions enumeration (section 2.1.11).
public void setFuOptions(int value)
Gets or sets a 32-bit unsigned integer specifying the text output options to use. These options are specified by one or a combination of values from the ExtTextOutOptions enumeration (section 2.1.11).
public int getIGraphicsMode()
Gets or sets a 32-bit unsigned integer specifying the graphics mode, from the GraphicsMode enumeration (section 2.1.16).
public void setIGraphicsMode(int value)
Gets or sets a 32-bit unsigned integer specifying the graphics mode, from the GraphicsMode enumeration (section 2.1.16).
public float getExScale()
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the x-direction.
public void setExScale(float value)
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the x-direction.
public float getEyScale()
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the y-direction.
public void setEyScale(float value)
Gets or sets a 32-bit floating-point value that specifies how much to scale the text in the y-direction.
public Rectangle getBounds()
Gets or sets an optional, 128-bit WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies the bounding rectangle in device units.
public void setBounds(Rectangle value)
Gets or sets an optional, 128-bit WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies the bounding rectangle in device units.
public String getTextString()
Gets or sets a variable-length string that contains the text string to draw, in either 8-bit or 16-bit character codes, according to the value of the fuOptions field.
public void setTextString(String value)
Gets or sets a variable-length string that contains the text string to draw, in either 8-bit or 16-bit character codes, according to the value of the fuOptions field.