Previous Topic

Next Topic

Book Contents

Book Index

Getting Images

Use the following Javascript methods to get images from the editor applet:

Javascript method

Description

Image getEquationImage()

Returns an AWT Image of the current equation, only useful from another Java applet.

Image getEquationImage(int pointSize)

Returns an AWT Image of the current equation rendered at the specified font point size.

Image getEquationImage(int pointSize, String bgColor)

Returns an AWT Image of the current equation rendered at the specified font point size and with the specified background color, which can either be of the form #rrggbb, #rgb, or a CSS color keyword, such as "blue".

Image getEquationImage(int pointSize, int dpi, String fgColor, String bgColor, String halignment, String valignment, int border, int breakwidth, int width, int height)

Returns an AWT Image of the current equation rendered with the specified properties.

void clearEquation()

Clears the current equation.

Previous Topic

Next Topic

Book Contents

Book Index


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.