Re: [Fxruby-users] FXImage and FXIcon
Status: Inactive
Brought to you by:
lyle
From: Hugh S. S. E. E. <hg...@dm...> - 2003-07-18 11:37:39
|
On Fri, 18 Jul 2003, Dmitry Morozhnikov wrote: > On Fri, 18 Jul 2003 11:56:08 +0100 (BST) > Hugh Sasse Staff Elec Eng <hg...@dm...> wrote: > > I've not done this, but I think you can just call FXIcon.new using > > the same pixel buffer as you did for making the FXImage, and the > > options (opts) appear to be the same too. > > gm.. do you mean: > > image = FXImage.new(...) image = FXImage.new(app, pixels) > icon = FXIcon.new(..., image.data, ...) icon = FXIcon.new(app, pixels, ...) > > it not work. image.data looks like raw RGB, but it not work with FXRGBIcon too.. FXRGBIcon uses similar args, but is based on the same data buffer as FXRGBImage. FXRGBImage and FXImage are not the same thing, of course. So it really depends on what you are passing in to create your image, which you have not stated. As I say, I have not had to do this yet. Maybe: (a) show us more code so we can see what failed (b) someone who knows better than me can answer from the above info. I just found the above out from http://www.fxruby.org/doc/api/ > > DMIceman, Dmitry Morozhnikov, PGPKEY: 0xB6C14D95 Hugh |