DCSIMG
Asynchronous - Essential WPF

Browse by Tags

All Tags » Asynchronous (RSS)

WPF Raw Video by Tomer Shamam

In my last post I showed how to access the WPF's BitmapSource underlying WIC image, and I promised to explain my code, and also to post an Image stream (Video) code based on my solution. In this post I will quickly talk about the unique CompositionTarget class, and I will show how to render a Raw Video using its Rendered event. Download the code from here ( FYI - I refractor the code from the last post and fixed several bugs ). I will start by reminding one of the disadvantages of my WICBitmap...

Event-based Asynchronous Pattern פשוט חמק ממני! by Tomer Shamam

אני פשוט לא מאמין שקיים Pattern חדש (אולי כבר ישן) נוסף, לפחות ב-.NET 2.0 למימוש קריאות אסינכרוניות. וזה לא ה-Pattern הסטנדרטי: Asynchronous Programming Design Patterns. קוראים לו: Event-based Asynchronous Pattern אגב זאת גם הסיבה שהקומפיילר מייצר Proxies לטובת Web Services וכו', ללא זוג המטודות הנוספות שהתרגלנו אליהם: BeginXXX, EndXXX. אז מה קורה פה? אם תסתכלו טוב, תמצאו מטודות שמסתיימות עם Async, AsyncCancel, ובנוסף Event שאפשר להרשם אליו, והוא פועל כשההפעלה האסינכרונית הסתיימה (אגב ה-BackgroundWorker...
Powered by Community Server (Commercial Edition), by Telligent Systems