DEXTUploadJ
DEXTUploadJ References > ImageTool > Method > setFont
setFont Method
- Version
- 1.0.1.0
- Environment
- Sun JDK1.4
- Target
- ImageTool
- Signature 1
- public void setFont(java.awt.Font _Font)
- Signature 2
- public void setFont(java.lang.String _FontName,int FontSize)
- Signature 3
- public void setFont(java.lang.String _FontName, int FontStyle, int FontSize)
- Parameters
-
Name Signature Description _Font ava.awt.Font Font to be used _FontName java.lang.String Font Name FontSize int Font Size FontStyle int Font style. The same as the style defined in Font class. - Return value
- Throws
- java.io.IOException
- DEXTUploadException
- Description
-
Set font to be used.
- Usage (Signature1)
-
ImageTool image = ImageTool.getImageTool(file); image.setFont(font);
- Usage (Signature2)
-
ImageTool image = ImageTool.getImageTool(file); image.setFont("Sans", 30);
- Usage (Signature3)
-
ImageTool image = ImageTool.getImageTool(file); image.setFont("Sans", Font.ITALIC, 30);