|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.render.ImageRender
public abstract class ImageRender
This is the parent of all image renderers in MillScript. Subclasses simply need to set the relevant image writer and SVG transcoder.
| Constructor Summary | |
|---|---|
ImageRender()
|
|
| Method Summary | |
|---|---|
void |
renderImage(Image image,
org.millscript.commons.vfs.VFile outFile)
Renders the specified image to the specified output file. |
void |
renderImageToStream(Image image,
java.io.OutputStream ostream)
Renders the specified image to the specified output stream. |
void |
write(java.awt.image.BufferedImage image,
java.io.OutputStream ostream)
Performs the general writing step from the specified image to the specified output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageRender()
| Method Detail |
|---|
public void renderImage(Image image,
org.millscript.commons.vfs.VFile outFile)
image - the image to render to the outputoutFile - the virtual file to render the image to
public void renderImageToStream(Image image,
java.io.OutputStream ostream)
throws java.io.IOException
image - the image to renderostream - the output to render to
java.io.IOException - thrown if an IO error occurs
public final void write(java.awt.image.BufferedImage image,
java.io.OutputStream ostream)
throws java.io.IOException
image - the image to writeostream - the output stream to write to
java.io.IOException - thrown if any IO problems occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||