HBITMAP to Image?

Can someone help me out by showing me how to get from a HBITMAP to an Image? I assume the solution is to use setPixelData but I do not really understand enough about in-memory bitmaps to know how to use that method.