uchar4 to Java image


If I’m using CUDA in my Java program through the JNI (Java Native Interface), how do I convert an array of uchar4 to an image in Java?
Perhaps someone could give some hints.


This sounds more like a Java question than a CUDA question - uchar4 is just a struct of 4 unsigned bytes.