public class LLVGPainter
extends java.lang.Object
It follows the rules described in LLUIPainter.
| Modifier and Type | Field and Description |
|---|---|
static int |
RESOURCE_CLOSED
Value returned when resource is closed
|
static int |
RETURN_SUCCESS
Value returned on success.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
drawGradient(byte[] gcArray,
byte[] path,
int x,
int y,
float[] matrix,
int fillRule,
int alpha,
int blend,
int[] gradientData,
float[] gradientMatrix)
Draws a path filled with a linear gradient.
|
static int |
drawGradientString(byte[] gcArray,
char[] string,
int face,
float size,
float x,
float y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing,
int[] gradientData,
float[] gradientMatrix)
Draws a string with a linear gradient.
|
static int |
drawGradientStringOnCircle(byte[] gcArray,
char[] string,
int face,
float size,
int x,
int y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing,
float radius,
int direction,
int[] gradientData,
float[] gradientMatrix)
Draws a string along a circle, with a linear gradient.
|
static int |
drawImage(byte[] gcArray,
byte[] sniContext,
int x,
int y,
float[] matrix,
int alpha,
long elapsedTime,
float[] colorMatrix)
Draws an image with transformation and opacity.
|
static void |
drawPath(byte[] gcArray,
byte[] path,
int x,
int y,
float[] matrix,
int fillRule,
int blend,
int color)
Draws a path filled with the given color.
|
static int |
drawString(byte[] gcArray,
char[] string,
int face,
float size,
float x,
float y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing)
Draws a string with the color of the graphics context.
|
static int |
drawStringOnCircle(byte[] gcArray,
char[] string,
int face,
float size,
int x,
int y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing,
float radius,
int direction)
Draws a string along a circle, with the color of the graphics context.
|
static void |
refreshContent(java.lang.Object array)
Refreshes an array.
|
static void |
refreshContent(java.lang.Object array,
int offset,
int length)
Refreshes a range of an array.
|
static float[] |
refreshMatrix(float[] matrix)
Refreshes the matrix given by the application.
|
public static final int RETURN_SUCCESS
public static final int RESOURCE_CLOSED
public static void drawPath(byte[] gcArray,
byte[] path,
int x,
int y,
float[] matrix,
int fillRule,
int blend,
int color)
The specified path will be transformed by the given matrix and drawn into the specified target buffer using the supplied color.
gcArray - the destinationpath - the path to drawx - the destination X coordinatey - the destination Y coordinatematrix - the deformation to applyfillRule - the fill typeblend - the blend modecolor - the color to apply (with an opacity)public static void drawGradient(byte[] gcArray,
byte[] path,
int x,
int y,
float[] matrix,
int fillRule,
int alpha,
int blend,
int[] gradientData,
float[] gradientMatrix)
The specified path will be transformed by the given matrix and filled by the transformed gradient pattern.
gcArray - the destinationpath - the path to drawx - the destination X coordinatey - the destination Y coordinatematrix - the deformation to applyfillRule - the fill typealpha - the global opacity to applyblend - the blend modegradientData - the gradient datagradientMatrix - the gradient matrix (can be null)public static int drawString(byte[] gcArray,
char[] string,
int face,
float size,
float x,
float y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing)
gcArray - the graphics context to draw onstring - the array of characters to drawface - the font face to usesize - the font size, in pixelsx - the destination X coordinatey - the destination Y coordinatematrix - the transformation matrix to apply (can be null)alpha - the global opacity rendering valueblendMode - the blend mode to useletterSpacing - the extra letter spacing to useRETURN_SUCCESS on success or an error codepublic static int drawGradientString(byte[] gcArray,
char[] string,
int face,
float size,
float x,
float y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing,
int[] gradientData,
float[] gradientMatrix)
gcArray - the graphics context to draw onstring - the array of characters to drawface - the font face to usesize - the font size, in pixelsx - the destination X coordinatey - the destination Y coordinatematrix - the transformation matrix to applyalpha - the global opacity rendering valueblendMode - the blend mode to useletterSpacing - the extra letter spacing to usegradientData - the gradient to applygradientMatrix - the gradient deformation, may be null (means identity)RETURN_SUCCESS on success or an error codepublic static int drawStringOnCircle(byte[] gcArray,
char[] string,
int face,
float size,
int x,
int y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing,
float radius,
int direction)
gcArray - the graphics context to draw onstring - the array of characters to drawface - the font face to usesize - the font size, in pixelsx - the destination X coordinatey - the destination Y coordinatematrix - the transformation matrix to applyalpha - the global opacity rendering valueblendMode - the blend mode to useletterSpacing - the extra letter spacing to useradius - the radius of the circledirection - the direction of the text along the circleRETURN_SUCCESS on success or an error codepublic static int drawGradientStringOnCircle(byte[] gcArray,
char[] string,
int face,
float size,
int x,
int y,
float[] matrix,
int alpha,
int blendMode,
float letterSpacing,
float radius,
int direction,
int[] gradientData,
float[] gradientMatrix)
gcArray - the graphics context to draw onstring - the array of characters to drawface - the font face to usesize - the font size, in pixelsx - the destination X coordinatey - the destination Y coordinatematrix - the transformation matrix to applyalpha - the global opacity rendering valueblendMode - the blend mode to useletterSpacing - the extra letter spacing to useradius - the radius of the circledirection - the direction of the text along the circlegradientData - the gradient to applygradientMatrix - the gradient deformation, may be null (means identity)RETURN_SUCCESS on success or an error codepublic static int drawImage(byte[] gcArray,
byte[] sniContext,
int x,
int y,
float[] matrix,
int alpha,
long elapsedTime,
float[] colorMatrix)
gcArray - the graphics context to draw onsniContext - the image to drawx - the destination X coordinatey - the destination Y coordinatematrix - the transformation matrix to applyalpha - the global opacity rendering valueelapsedTime - the elapsed time since the beginning of the animation, in millisecondscolorMatrix - the color matrix used to transform colorsRETURN_SUCCESS on success or an error codepublic static float[] refreshMatrix(float[] matrix)
null, returns the unique instance of the
identity matrix.matrix - the matrix to refreshpublic static void refreshContent(java.lang.Object array)
null (nothing to refresh).array - the array to refreshpublic static void refreshContent(java.lang.Object array,
int offset,
int length)
array - the array to refreshoffset - the start index of the rangelength - the length of the range