[Gambas-user] Re; Image handling ...

Benoit Minisini gambas at ...1...
Fri Jul 27 00:11:43 CEST 2007


On jeudi 26 juillet 2007, Gareth Bult wrote:
> Ok,
>
> I now have nifty little app for recording all my CCTV images off a variable
> number of camera and it's all looking great.
>
> However, I don't know where to start with the screen flicker problem .. it
> did go away initially using the draw code you suggested, but it seems to
> have come back as a result of using a more recent SVN.
>
> I use a separate recorder to store the images in Blobs (MySQL) and recover
> them with;
>
>   File.Save(name, resultSet!image.Data)
>   $picture = Picture.Load(name)
>
> Then issue;
>
>   $canvas.Refresh
>
> Then have;
>
> PUBLIC SUB CANVAS_Draw()
>   draw.Picture($picture, 0, 0, 320, 240)
> END
>
> Works well, but refresh flickering is every couple of seconds and quite
> frustrating as it destroys viewing "quality".
>
> Can anyone point me in the right direction re; where to look ?
> (There doesn't "seem" to be much scope for my code to cause this ???)
>
> tia
> Gareth.
>

Why don't you use a "cached" DrawingArea ?

-- 
Benoit Minisini




More information about the User mailing list