PointerByReference should work, if the intent is to return a pointer
into a by-reference argument. From there you can extract different
types from the returned pointer, or treat it as an opaque object.
On Nov 26, 2007, at 3:04 AM, Cameron Taggart wrote:
The library I'm trying to map to is Graphviz. To render an graph,
there are three methods[1]: gvRender, gvRenderData, and
gvRenderFilename. I was able to get gvRenderFilename to work using
JNA, but I'm looking for a way to not write the file to disk. May be
gvRenderData would work, but my C programming abilities are failing me
and I'm not sure what to pass in for the "char ** result" argument in
C or Java via JNA.
[1] http://www.graphviz.org/pub/graphviz/CURRENT/doxygen/html/
gvc_8c.html#c81890a1c646b7534fc23350b8d3f85f
On Nov 25, 2007 2:55 PM, Cameron Taggart
<came...@gmail.com> wrote:
I want to render an image to an java.io.OutputStream. I want to
use a
C library to render that image and the function looks like:
render(File *out);
Any ideas how this might be accomplished? Must the image be rendered
to a file system in C and then read in Java once complete? Is there
any way to not write it to disk first?
cheers,
Cameron