/// <summary>
 /// Converts a color frame to a System.Media.ImageSource with its background removed.
 /// </summary>
 /// <param name="frame">A BackgroundRemovedColorFrame generated from a Kinect sensor.</param>
 /// <returns>The specified frame in a System.media.ImageSource format.</returns>
 public static ImageSource ToBitmap(this BackgroundRemovedColorFrame frame)
 {
     return(frame.ToBitmap(PixelFormats.Bgra32));
 }