I currently have problems with the proper scaling of a generated Java2D BufferedImage to a JME Quad. I need this for a full screen (full size of the JMECanvas) menu with text. Unfortunately the text doesn't look proper (frayed). When I just save the BufferedImage to a PNG file, the text looks proper. Here is the code I use for adding the BufferedImage to the Quad:
Thank you very much for your replies. Finally I found out that the BufferedImage didn't have a size of power of two. After I did the following changes the text was very clear and sharp:
int imageWidth = FastMath.nearestPowerOfTwo(canvasWidth);
int imageHeight = FastMath.nearestPowerOfTwo(canvasHeigth);
BufferedImage bi = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
@Renanse: Could you please explain me what you mean with "disabling the minification and magnification filters"? Are these the parameters used for TextureManager.loadTexture()? Currently I use the following for adding the buffered img to the quad (full size of canvas):
Texture t = TextureManager.loadTexture(bi, Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR, 1, true);