Re: [Fxruby-users] hard time using images
Status: Inactive
Brought to you by:
lyle
From: Andre' W. <an...@sy...> - 2004-07-07 17:08:28
|
Thank you so much for the very complete info! However, I still can't draw :-( So let us speak ruby. I wrote this small class: require 'fox' include Fox class Test def initialize app =3D FXApp.new main_window =3D FXMainWindow.new(app, "test", nil, nil, D= ECOR_ALL, 500, 330, 540, 370) # Image image =3D FXImage.new(app, nil, 0, 30, 30) imageview =3D FXImageView.new(main_window, image) # Set a pixel image.setPixel(10, 10, FXRGB(255, 255, 255)) =20 app.create main_window.show app.run end end t =3D Test.new When the code gets into the setPixel, I get a segfault. What am I missing? Thank you in advance, Andr=E9 --=20 =A9 Andre' Wagner - 2004 - All rights reserved |