Exemple #1
0
 public BufferedImage getImage(String theText) {
   BufferedImage myImage = _myFont.getImage(theText);
   switch (_myFontRenderingQuality) {
     case FONT_QUALITY_LOW:
       break;
     case FONT_QUALITY_HIGH:
       myImage = ImageUtil.blur(myImage, _mySmoothFactor);
       myImage = ImageUtil.scale(myImage, 1.0f / _myScaleFactor);
       break;
   }
   return myImage;
 }
Exemple #2
0
 public ByteBitmap getBitmap(String theText) {
   return ImageUtil.convertBufferedImage2ByteBitmap(getImage(theText));
 }