home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Screencast video
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Michael.K" data-source="post: 845513" data-attributes="member: 118906"><p>So i have timer which ticks with 100ms interval. I need change image in ImageControl.</p><p><span style="color: #000000"><span style="font-size: 12px"><span style="font-family: 'arial'">Now I have the following:</span></span></span></p><p>[CODE]</p><p>[SkinControlAttribute(20)]</p><p>protected GUIImage videoImage = null;</p><p>...</p><p> public override void onStartVideo()</p><p> {</p><p> timer = new System.Timers.Timer(100);</p><p> timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);</p><p> timer.Enabled = true; // Enable it</p><p> }</p><p>void _timer_Elapsed(object sender, ElapsedEventArgs e)</p><p> {</p><p> PixelFormat format = PixelFormat.Format32bppRgb;</p><p> Bitmap b = getFrame(format);</p><p> if(tempbm==null) return;</p><p> GUITextureManager.ReleaseTexture("[myfirstplugin:video]");</p><p> int res = GUITextureManager.LoadFromMemory(b, "[myfirstplugin:video]",0x00000000, 100, 100);</p><p> chack = !chack;</p><p> }</p><p> _videoImage.FileName = "";</p><p> _videoImage.FileName = "[myfirstplugin:video]";</p><p> }[/CODE]</p><p> </p><p> </p><p>But when image updating it very blink, about 3-5 times in second.</p><p><span style="color: #000000"><span style="font-size: 12px"><span style="font-family: 'arial'">How can I solve this problem? Help me please.</span></span></span></p></blockquote><p></p>
[QUOTE="Michael.K, post: 845513, member: 118906"] So i have timer which ticks with 100ms interval. I need change image in ImageControl. [COLOR=#000000][SIZE=3][FONT=arial]Now I have the following:[/FONT][/SIZE][/COLOR] [CODE] [SkinControlAttribute(20)] protected GUIImage videoImage = null; ... public override void onStartVideo() { timer = new System.Timers.Timer(100); timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed); timer.Enabled = true; // Enable it } void _timer_Elapsed(object sender, ElapsedEventArgs e) { PixelFormat format = PixelFormat.Format32bppRgb; Bitmap b = getFrame(format); if(tempbm==null) return; GUITextureManager.ReleaseTexture("[myfirstplugin:video]"); int res = GUITextureManager.LoadFromMemory(b, "[myfirstplugin:video]",0x00000000, 100, 100); chack = !chack; } _videoImage.FileName = ""; _videoImage.FileName = "[myfirstplugin:video]"; }[/CODE] But when image updating it very blink, about 3-5 times in second. [COLOR=#000000][SIZE=3][FONT=arial]How can I solve this problem? Help me please.[/FONT][/SIZE][/COLOR] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Screencast video
Contact us
RSS
Top
Bottom