public class SingleRoute : RouteBase { public override RouteData GetRouteData(HttpContextBase httpContext) { var data = new RouteData(this, new MvcRouteHandler()); data.Values.Add("controller", "Home"); data.Values.Add("action", "Index"); return data; }
Response::Download() in Laravel 4.x needs php_fileinfo extension. Sometimes web hosting server doesn’t have that extension on, althought it’s default for php 5.4.
so the way to work around is make a response, and add header to it. See code below
- Send in frame event args
- AcquireFrame : access to the actual frame
- RelativeTime : allow to templorally correlate frames
1 2 3 4 5 6 7 8 9 10 11
private void InfraredReaderFrameArrvied(InfraredFrameReader sender, InfraredFrameArrivedEventArgs args) { using (InfraredFrame frame = args.FrameReference.AcquireFrame()) { if (frame != null) { // Get What you need from the frame } } }
Frame
- Gives access to the frame data
- Make a local copy of access the underlying buffer directly
- Contains metadata for the frame
- Color, Format, width, height,etc.
- Important: Not Disposing frames will cause you to not receive more frames
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; using WindowsPreview.Kinect; using Windows.UI.Xaml.Media.Imaging;
namespace KinectStudy_01 { public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); this.Loaded += MainPage_Loaded; } KinectSensor sensor; InfraredFrameReader reader; ushort[] irData; byte[] irDateConverted; WriteableBitmap irBitmap;
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; using WindowsPreview.Kinect; using Windows.UI.Xaml.Media.Imaging;