Hi,
No, only IupImage is accepted as an image handle in a control. So instead
of using imFileImageLoadBitmap, use IupLoadImage. It will use
imFileImageLoadBitmap
internally and it will return an IupImage Ihandle* so you can use it in
IupSetAttributeHandle.
Best,
Scuri
On Wed, May 20, 2015 at 11:24 AM, Joaquim Luis <[email protected]> wrote:
> Hi,
>
> How can I plot an image in an axes with coordinates?
> I tried with IupPlot and attribute "BACKIMAGE", as in (in Julia)
>
> error = pointer([0])
> image = imFileImageLoadBitmap("V://Capture.PNG", 0, error)
> IupSetAttributeHandle(plot[1], "BACKIMAGE", convert(Ptr{Void},
> image));
>
>
> but get crashes from the C side saying
>
> Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffdca48afd2 -- iupTableGet at
> C:\programs\compa_libs\iup\iup.DLL (unknown line)
> iupTableGet at C:\programs\compa_libs\iup\iup.DLL (unknown line)
> cdIupDrawImage at C:\programs\compa_libs\iup\iupcd.dll (unknown line)
> ...
>
> Thanks
>
> Joaquim
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users