ides.api.latex
Class LatexUtils

java.lang.Object
  extended by ides.api.latex.LatexUtils

public class LatexUtils
extends java.lang.Object

Provides some methods useful when rendering LaTeX elements.

Author:
Lenko Grigorov

Method Summary
static byte[] labelStringToImageBytes(java.lang.String s)
          Renders a string into a PNG image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

labelStringToImageBytes

public static byte[] labelStringToImageBytes(java.lang.String s)
                                      throws LatexRenderException
Renders a string into a PNG image.

Parameters:
s - the string to be rendered
Returns:
an array of bytes containing the PNG image
Throws:
LatexRenderException - when LaTeX rendering fails