[fxruby-users] Imlib2 and fxruby
kevin at ouelong.com
Sat Oct 30 09:10:34 EDT 2004
I'm not familar with imlib2 but if you should be able to convert the
imlib2 image to a FXMemoryBuffer and from that buffer create any one of
the FXImage* classes as long as you have formated the memory as (for
example) a PNG.
I think imlib2's IMAGE#data will get you the raw data then you would
need to create a FXMemroyBuffer.
Then you should be able to draw that png with the normal DC drawing
Dominik Werder wrote:
> I want to display an image generated with imlib2 with fxruby (some
> scientific graphs). This image needs to be updated everytime the user
> clicks anywhere on it.
> So my question: Is it possible to show the generated image with fxruby
> without first saving it to disk and reload it with fox? And is it
> possible to modify the displaying image in response to the user
> thank you very much!
> fxruby-users mailing list
> fxruby-users at rubyforge.org
More information about the fxruby-users