[Gambas-user] Image handling ...

Benoit Minisini gambas at ...1...
Fri Jul 13 12:12:41 CEST 2007


On vendredi 13 juillet 2007, Gareth Bult wrote:
> Ok,
>
> It might be worth a little review here ...
>
> This works fine;
>
>       File.Save("/tmp/temp", buffer)
>       $pic.Flush
>       $pic = Picture["/tmp/temp"]

I told you not to do that, byt $pic = Picture.Load("/tmp/temp")


>       canvas.Refresh
>
> PUBLIC SUB canvas_Draw()
>   draw.Picture($pic, 0, 0, 320, 240)
> END
>
> This does *not*;
>
>       File.Save("/tmp/temp", buffer)
>       '$pic.Flush
>       $pic = Picture["/tmp/temp"]
>       canvas.Refresh
>
> Neither does this;
>
>       File.Save("/tmp/temp", buffer)
>       $pic.Flush
>       $pic.Load("/tmp/temp")

This syntax works in Gambas 1.0, not in Gambas 1.9.x.

Regards,

-- 
Benoit Minisini




More information about the User mailing list