JavaFx and JNI
Hi,
I am writing a program to display an image in JavaFx .So 1st the javaFx gives the image path to simple java application that reads the pixels of the image in array and hands over to a native C program which processes and returns back the out put pixel to the java which in turn returns to JavaFx application. Here i am converting the java.awt.Image to javafx.scene.Image. And all the process happens by clicking a button in javafx. But while the javafx( program) trying to display the image 1st it appears like arbitrary pixels painted on a surface not the image(out put image) .When i click the button one or two more time the image appears.
So can u plz tell me the solution