[Gambas-user] Image handling ...
Gareth Bult
gareth at ...1689...
Sun Jul 15 21:54:39 CEST 2007
What I'm doing is;
PRIVATE $pic as Picture
Every time an image comes in I call;
File.Save("/tmp/temp",buffer)
$pic = Picture.Load("/tmp/temp")
canvas.refresh
Where buffer comes in from the camera over a httpclient connection.
(and 'canvas' is my drawing area)
Then I have;
PUBLIC SUB canvas_Draw()
draw.Picture($pic,0,0,320,240)
END
.. this works like a charm ..
(I have buffer = FALSE by the way)
--
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: "Bob Blick" <bbblick at ...770...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Friday, July 13, 2007 4:07:43 PM (GMT) Europe/London
Subject: Re: [Gambas-user] Image handling ...
Benoit Minisini wrote:
> But the ideal is using a DrawingArea with Cached = FALSE, and drawing the
> picture in the Draw event. Or with Cached = TRUE if your picture is not too
> big.
How does a DrawingArea work with a Picture object, such as one gets from
a VideoDevice?
Thanks,
Bob
-------------------------------------------------------------------------
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