(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // Takes a snapshot of WebView control (Windows 8.1) and returns a thumbnail URL. | |
| function getThumbnailFromWebView(webviewControl, width, height) { | |
| return capturePreviewToBlobAsync(webviewControl).then(function (completeEvent) { | |
| var blob = completeEvent.target.result; | |
| var streamIn = blob.msDetachStream(); | |
| var Imaging = Windows.Graphics.Imaging; | |
| var transform = new Imaging.BitmapTransform(); | |
| transform.scaledHeight = height; | |
| transform.scaledWidth = width; |