public class VectorFontPainter
extends java.lang.Object
Constructor and Description |
---|
VectorFontPainter() |
Modifier and Type | Method and Description |
---|---|
static void |
drawCharNative(byte[] gcArray,
int fontReference,
float size,
char character,
float[] matrix,
int alpha,
int gradientHandle)
Draws a character horizontally.
|
static void |
drawStringArcNative(byte[] gcArray,
int fontReference,
float size,
char[] string,
int stringOffset,
int stringLength,
int x,
int y,
int diameter,
float angleDegrees,
int alpha,
int gradientHandle,
boolean out)
Draws a string on an arc of a circle.
|
static void |
drawStringNative(byte[] gcArray,
int fontReference,
float size,
char[] string,
int stringOffset,
int stringLength,
int x,
int y,
int alpha,
int gradientHandle)
Draws a string horizontally.
|
public static void drawCharNative(byte[] gcArray, int fontReference, float size, char character, float[] matrix, int alpha, int gradientHandle)
gcArray
- the graphic contextfontReference
- the reference of the font used to render the stringsize
- the height of the characters to draw in pixelscharacter
- the character to draw.matrix
- affine transformation matrix to apply to the glyph, originated on top-left anchor point of the
character.alpha
- the opacity, 0xFF meaning fully opaquegradientHandle
- a handle to the gradient to apply, 0 meaning that gradient is not used. In this case, use color.public static void drawStringNative(byte[] gcArray, int fontReference, float size, char[] string, int stringOffset, int stringLength, int x, int y, int alpha, int gradientHandle)
gcArray
- the graphic contextfontReference
- the reference of the font used to render the stringsize
- the height of the characters to draw in pixelsstring
- the array of characters containing the string to draw.stringOffset
- the index of the first character of the string in the arraystringLength
- the length of the stringx
- the top left coordinate of the characters string on x axisy
- the top left coordinate of the characters string on y axisalpha
- the opacity, 0xFF meaning fully opaquegradientHandle
- a handle to the gradient to apply, 0 meaning that gradient is not used. In this case, use color.public static void drawStringArcNative(byte[] gcArray, int fontReference, float size, char[] string, int stringOffset, int stringLength, int x, int y, int diameter, float angleDegrees, int alpha, int gradientHandle, boolean out)
gcArray
- the graphic contextfontReference
- the reference of the font used to render the stringsize
- the height of the characters to draw in pixelsstring
- the array of characters containing the string to draw.stringOffset
- the index of the first character of the string in the arraystringLength
- the length of the stringx
- the top left coordinate of the circle on x axisy
- the top left coordinate of the circle on y axisdiameter
- the diameter of the circleangleDegrees
- the angle in degrees at which the first character of the string is drawn on the circlealpha
- the opacity, 0xFF meaning fully opaquegradientHandle
- a handle to the gradient to apply, 0 meaning that gradient is not used. In this case, use color.out
- a flag to set the direction of the text