[Gambas-user] Image handling ...

Gareth Bult gareth at ...1689...
Fri Jul 13 12:18:45 CEST 2007


Ok, thanks ...

I didn't spot the difference initially between;
$pic.Load
and $pic = Picture.Load

$pic = Picture.Load works ok ..

It's a bit confusing having $pic.Load available, not work and not give an error tho' ...

Gareth.

--
Gareth Bult, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.

----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Friday, July 13, 2007 11:12:41 AM (GMT) Europe/London
Subject: Re: [Gambas-user] Image handling ...

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list