public void DepthImage_Colors_Fade_With_Distance() { var bitmap = new Bitmap(20, 10); var factory = new DepthBitmapFactory(200); var frame = new DepthDataFrame(20, 10); for (int index = 0; index < frame.Data.Length; index++) { frame.Data[index] = (ushort) index; } var pointerFactory = new ArrayToPointerFactory(); var pointer = pointerFactory.CreatePointer(frame.Data); try { factory.CreateImage(bitmap, pointer); AssertColorsFade(bitmap); } finally { pointerFactory.Destroy(pointer); } }