Hmm, well it seems like everything is working correctly, it compiles at least. But the PImage I end up with does not seem to contain anything.
maybe im missing something? My process is this:
- Create JDialog with some HTML text in it,
- Create a new Java Image and call .createImage() on the JDialog,
- Create a PImage and pass the Image to that,
- then draw the image to stage with image(),
- then hide the original JDialog to only see the PImage.
but nothing shows up. Here's the code:
- buffer.beginDraw();
- ta = new HTMLTextArea(frame, 100,100,200,400);
- ta.setText(style+title+story);
- ta.setVisible(true);
-
- Image jImg = ta.createImage(ta.w, ta.h);
- println("Jimage :: "+jImg);
-
- PImage img = new PImage(jImg);
- println("Pimage :: "+img);
- image(img, 0, 0);
- buffer.endDraw();
Thoughts? Need more code to tell?
Thanks!
ak