RenderingUtils
Inheritance: java.lang.Object
public class RenderingUtils
Proporciona métodos utilitarios para el renderizado.
Métodos
| Método | Descripción |
|---|---|
| drawText(Font font, GlyphId[] glyphIds, double fontSize) | Renderizando texto en BitMap. |
| drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth) | Renderizando texto en BitMap. |
| drawText(Font font, String text, double fontSize) | Renderizando texto en BitMap. |
| drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth) | Renderizando texto en BitMap. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
drawText(Font font, GlyphId[] glyphIds, double fontSize)
public static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize)
Renderizando texto en BitMap. Devuelve el resultado en formato PNG como flujo de bytes.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| font | Font | Fuente |
| glyphIds | GlyphId[] | Texto representado como una matriz de identificadores de glifos |
| fontSize | double | Tamaño de fuente |
Returns: java.io.InputStream - Imagen en formato PNG como flujo de bytes
drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
public static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Renderizando texto en BitMap. Devuelve el resultado en formato PNG como flujo de bytes.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| font | Font | Fuente |
| glyphIds | GlyphId[] | Texto representado como una matriz de identificadores de glifos |
| fontSize | double | Tamaño de fuente |
| lineSpacingType | LineSpacingType | Tipo de interlineado. Número de píxeles o porcentaje de la altura de la fuente |
| lineSpacingValue | int | Valor del interlineado |
| maxWidth | int | Ancho máximo en píxeles para la imagen |
Returns: java.io.InputStream - Imagen en formato PNG como flujo de bytes
drawText(Font font, String text, double fontSize)
public static InputStream drawText(Font font, String text, double fontSize)
Renderizando texto en BitMap.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| font | Font | La fuente. |
| text | java.lang.String | El texto. |
| fontSize | double | El tamaño de la fuente. |
Returns: java.io.InputStream - La imagen PNG con el texto como una secuencia de bytes.
drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
public static InputStream drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Renderizando texto en BitMap.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| font | Font | La fuente. |
| text | java.lang.String | El texto. |
| fontSize | double | El tamaño de la fuente. |
| lineSpacingType | LineSpacingType | El tipo de interlineado. Número de píxeles o porcentaje de la altura de la fuente. |
| lineSpacingValue | int | El valor del interlineado. |
| maxWidth | int | El ancho máximo en píxeles para la imagen resultante. |
Returns: java.io.InputStream - La imagen PNG con el texto como una secuencia de bytes.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long | |
| arg1 | int |