I tried the following:

c = iup.clipboad{image=myimg}
ii = iup.GetNativeHandleImage(c.nativeimage)
ni = iup.ImageFromImImage(ii)

This gives the following error:
stdin:1: bad argument #1 to 'ImageFromImImage' (imImage expected, got
userdata)
stack traceback:
        [C]: in function 'iuplua.ImageFromImImage'
        stdin:1: in main chunk
        [C]: in ?

I thought ii should have been an ImImage as described by the function
GetNativeHandleImage but there seems to be some problem.

Any help here would be appreciated.

Thanks,
Milind


On Mon, Jan 23, 2017 at 12:25 PM, Milind Gupta <milind.gu...@gmail.com>
wrote:

> Hi,
>       I have a image on a label on one of my dialogs. I want to resize the
> image when the dialog is resized to fill the growing size of the label. To
> do this I was looking to convert the iup image to IM image so I can use the
> resize operation and then convert the image back to iup image and fill the
> label.
>       I see the function ImageFromImImage but I do not see the reverse. I
> tried GetNativeHandleImage but that gies the bad argument error if I pass
> it the iup image. So how can I convert the iup image to im image?
>
> Thanks,
> Milind
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to