I am currently working with Kinect, and I want to draw the bones of a skeleton on the VGA image of the kinect. First, I get the picture from the kinect:
HRESULT hr = globalNui->NuiImageStreamGetNextFrame( videoStreamHandle, 0, &frame);
INuiFrameTexture * texture = frame.pFrameTexture;
NUI_LOCKED_RECT lockedRect;
texture->LockRect( 0, &lockedRect, NULL, 0);
Here we have it in a NUI_LOCKED_RECT, so we can do anything with it. The most common way is to just convert it to a bitmap and put it on the screen, but I want to make some modifications to the image. I use Direct2D to bring it on the screen, so I need an image format that can be converted to ID2D1Bitmap, and I must be able to draw lines and points on it. What kind of image do I need?