Closed itlmos closed 5 years ago
I'll have to check that.
So I did this: BufferedImage blah = JavaRenderer.getInstance().RenderMilStdSymbolAsIcon("SFGPIMFPW-H----", 130, Boolean.TRUE); File outFileBlah = new File("C:/temp/blah.png"); try { ImageIO.write(blah, "png",outFileBlah); } catch(IOException ioe) { ErrorLogger.LogMessage(ioe.getMessage()); }
and got this:
Can you post an image of what you're getting and why you believe it is incorrect?
When specifying a Function ID of a symbol for the JavaRenderer, it does not render the image any differently.
Consider the following Java code:
String code = "SFGPIMFPW-H-"; BufferedImage image = JavaRenderer.getInstance().RenderMilStdSymbolAsIcon(code, 130, Boolean.TRUE); imageView.setImage(SwingFXUtils.toFXImage(image, null));
This renders the image correctly, except that the Function ID modifier isn't applied.
Please advise?