Jump to content

Unimage Flicker problem


docjones
 Share

Recommended Posts

Hi

 

I'm loading a secuence of images on unimage (from a camera ip) , but a molest flicker is produced when loading the image. tested with iexplorer 9, and firefox.

 

in my uniapplication, i have a unitimer (interval=100), that get jpg frame from a remote camera ip, and load it on a unimage, but a molest flicker produced.

same problem using UniImage1.Picture.Assign(JpeGImg) or using uniImage1.url=xxx.

 

¿ any sugestion to remove the molest image flicker ?.

//my code.
Procedure TFramePreviewCore.GetFrame2; 
var url:string;
Begin
   URL:='http://localhost:'+IntToStr(RemoteHttpPort)+'/image.cgi'+'?random='+inttostr(Random(200000));
   UniImage1.Url:=url;
End;

procedure TFramePreviewCore.UniTimer1Timer(Sender: TObject);
begin
   try GetFrame2; except end;
End;

 

 

thanks.

Link to comment
Share on other sites

It is related to way browser handle images. Some browsers clear the image place holder before loading a new one.

 

Instead of uniImage you can use TUniCanvas to render images. It should resolve flickering.

 

thaks Farshad , but using unicanvas, painting every 100ms, cpu goes 100% and it's too slow. i will try with some html/javascript or ussing an applet and load on uniurlframe.

 

thanks.

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...