missioncommand / mil-sym-java

(RETIRED) MIL-STD-2525 B and C rendering library and web service
Apache License 2.0
67 stars 36 forks source link

Function ID not working in JavaRenderer #93

Closed itlmos closed 5 years ago

itlmos commented 6 years ago

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?

michael-spinelli commented 6 years ago

I'll have to check that.

michael-spinelli commented 6 years ago

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:

blah

michael-spinelli commented 6 years ago

Can you post an image of what you're getting and why you believe it is incorrect?