ImageFrame.ToDepthArray returns short[], not int[]?

Oct 15, 2011 at 1:01 AM

Hi Clint, thanks for writing this convenient tool.

The documentation mentions ImageFrame.ToDepthArray() returns an int[], but I believe it actually returns a short[]. Am I using an old version of code or is the documentation out of date?

Just wanted to point this out,


Oct 18, 2011 at 3:46 AM

Hey Julia, it has been a while since we did this.  I remember we orginally had either a short or ushort but there was a CLS compliance issue.  Based on the MSDN documentation, we opt'ed for an int32.

Why we did an int over a short, i can't remember :-(  It may have been able to reduce a lot of the casting with the image manipulations