<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Coding4Fun Kinect Toolkit v1.5 for v1</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/kinect/Coding4Fun-Kinect-Toolkit-v15-for-v1/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/b0962949-600a-4b57-8a46-1894b1b487a4.png</url>
		<title>Channel 9 - Coding4Fun Kinect Toolkit v1.5 for v1</title>
		<link></link>
	</image>
	<description>Last but not least is one of those must have toolkits, one of those hard learned repositories of BST (blood, sweat and tears)... Coding4Fun Kinect ToolkitUpdated for Kinect for Windows SDK v1.0!This project requires the Kinect for Windows SDK. If you want to learn how to use the Kinect for Windows SDK, head over to the Channel 9 and their quick start series. This toolkit contains both a WinForm and WPF version. WPF:Depth Data Extension Methods: ImageFrame.ToBitmapSource() returns BitmapSource int[].ToBitmapSource() returns BitmapSource int[].ToBitmapSource(int width, int height, int minimumDistance, Color highlightColor) returns BitmapSource ImageFrame.ToDepthArray() returns int[] int[].GetMidpoint(int startX, int startY, int endX, int endY, int minimumDistance) returns Point BitmapSource.Save(string fileName, ImageFormat format) returns nothing Skeleton Data Extension Methods: Joint.ScaleTo(int width, int height) Scales a Joint&#39;s Position to the maximum width and height specified Joint.ScaleTo(int width, int height, float maxSkeletonX, float maxSkeletonY) Scales a Joint&#39;s Position to the maximum width and height specified Controls: Hover Button WinForm:Depth Data Extension Methods: ImageFrame.ToBitmap() returns Bitmap int[].ToBitmap() returns Bitmap int[].ToBitmap(int width, int height, int minimumDistance, Color highlightColor) returns Bitmap ImageFrame.ToDepthArray() returns int[] int[].GetMidpoint(int startX, int startY, int endX, int endY, int minimumDistance) returns Point Bitmap.Save(string fileName, ImageFormat format) returns nothing Skeleton Data Extension Methods: Joint.ScaleTo(int width, int height) Scales a Joint&#39;s Position to the maximum width and height specified Joint.ScaleTo(int width, int height, float maxSkeletonX, float maxSkeletonY) Scales a Joint&#39;s Position to the maximum width and height specified Project Information URL: http://c4fkinect.codeplex.com/ Project Download URL: http://c4fkinect.codeplex.com/releases/view/81523 Project Source URL: http://c4fkinect.codeplex.com/SourceControl/list/changesets Runs with v1? Yes   void sensor_ColorFrameReady(AllFramesReadyEventArgs e)
{
    using (ColorImageFrame colorFrame = e.OpenColorImageFrame())
    {
        if (colorFrame == null)
        {
            return; 
        }

        //set image
        ColorImage.Source = colorFrame.ToBitmapSource();

        if (_saveColorFrame)
        {
            //save image

            colorFrame.ToBitmapSource().Save(DateTime.Now.ToString(&amp;quot;yyyyMMddHHmmss&amp;quot;) &amp;#43; &amp;quot;_color.jpg&amp;quot;, ImageFormat.Jpeg);
        }
    }            
}

void sensor_DepthFrameReady(AllFramesReadyEventArgs e)
{
    using (DepthImageFrame depthFrame = e.OpenDepthImageFrame())
    {
        if (depthFrame == null)
        {
            return; 
        }

        //turn raw data into an array of distances; 
        var depthArray = depthFrame.ToDepthArray();

        MidPointDistanceViaGetDistanceText.Text = depthFrame.GetDistance(depthFrame.Width/2, depthFrame.Height/2).ToString();

        //image
        DepthImageWithMinDistance.Source = depthArray.ToBitmapSource(depthFrame.Width, depthFrame.Height,
                                                                    _minDistance, Colors.Red);

        //image
        DepthImage.Source = depthFrame.ToBitmapSource();

        if (_saveDepthFrame)
        {
            _saveDepthFrame = false;
            depthFrame.ToBitmapSource().Save(DateTime.Now.ToString(&amp;quot;yyyyMMddHHmmss&amp;quot;) &amp;#43; &amp;quot;_depth.jpg&amp;quot;, ImageFormat.Jpeg);
        }
    }
}
 </description>
	<link></link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 20:59:10 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 20:59:10 GMT</lastBuildDate>
	<generator>Rev9</generator>
</channel>
</rss>