com.hdcookbook.grin.fontstrip
Class FontDesignImage
java.lang.Object
com.hdcookbook.grin.fontstrip.FontDesignImage
public class FontDesignImage
- extends java.lang.Object
Represents intermediate font image file that the designer can possibly edit.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontDesignImage
public FontDesignImage(FontDescription description,
int width,
int height)
setColors
public void setColors(java.awt.Color backgroundColor,
java.awt.Color pixRectColor,
java.awt.Color guidelineColor,
java.awt.Color fontColor)
setWhitespace
public void setWhitespace(int pixels)
setFont
public void setFont(java.awt.Font font)
setOutputFile
public void setOutputFile(java.io.File outputFile)
setCharactorArray
public void setCharactorArray(char[] chars)
writeOutImageFile
public void writeOutImageFile()
throws java.io.IOException
- Writes out the content of the BufferedImage to a file.
- Throws:
java.io.IOException
discardCurrentImage
public void discardCurrentImage()