Re: [Fxruby-users] FXImage and FXIcon
Status: Inactive
Brought to you by:
lyle
From: Dmitry M. <dmi...@ma...> - 2003-07-18 11:16:38
|
On Fri, 18 Jul 2003 11:56:08 +0100 (BST) Hugh Sasse Staff Elec Eng <hg...@dm...> wrote: > On Fri, 18 Jul 2003, Dmitry Morozhnikov wrote: > > > hi all > > > > sorry for stupid question, but how i can convert FXImage to FXIcon (to show it in FXLabel for example)? > > 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(...) icon = FXIcon.new(..., image.data, ...) it not work. image.data looks like raw RGB, but it not work with FXRGBIcon too.. -- DMIceman, Dmitry Morozhnikov, PGPKEY: 0xB6C14D95 |