RenderingUtils
Inheritance: java.lang.Object
public class RenderingUtils
Stellt Dienstprogrammmethoden für das Rendering bereit.
Methoden
drawText(Font font, GlyphId[] glyphIds, double fontSize)
public static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize)
Text in BitMap rendern. Ergebnis im PNG-Format als Byte-Stream zurückgeben.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| font | Font | Schriftart |
| glyphIds | GlyphId[] | Text dargestellt als Array von Glyph-Bezeichnern |
| fontSize | double | Schriftgröße |
Returns: java.io.InputStream - Bild im PNG-Format als Byte-Stream
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)
Text in BitMap rendern. Ergebnis im PNG-Format als Byte-Stream zurückgeben.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| font | Font | Schriftart |
| glyphIds | GlyphId[] | Text dargestellt als Array von Glyph-Bezeichnern |
| fontSize | double | Schriftgröße |
| lineSpacingType | LineSpacingType | Art des Zeilenabstands. Anzahl von Pixeln oder Prozentsatz der Schriftgröße |
| lineSpacingValue | int | Wert des Zeilenabstands |
| maxWidth | int | Maximale Breite in Pixeln für das Bild |
Returns: java.io.InputStream - Bild im PNG-Format als Byte-Stream
drawText(Font font, String text, double fontSize)
public static InputStream drawText(Font font, String text, double fontSize)
Text in BitMap rendern.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| font | Font | Die Schriftart. |
| text | java.lang.String | Der Text. |
| fontSize | double | Die Schriftgröße. |
Returns: java.io.InputStream - Das PNG-Bild mit dem Text als Bytestrom.
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)
Text in BitMap rendern.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| font | Font | Die Schriftart. |
| text | java.lang.String | Der Text. |
| fontSize | double | Die Schriftgröße. |
| lineSpacingType | LineSpacingType | Der Typ des Zeilenabstands. Anzahl der Pixel oder Prozentsatz der Schrifthöhe. |
| lineSpacingValue | int | Der Wert des Zeilenabstands. |
| maxWidth | int | Die maximale Breite in Pixeln für das resultierende Bild. |
Returns: java.io.InputStream - Das PNG-Bild mit dem Text als Bytestrom.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long | |
| arg1 | int |