I have an ActiveX component which returns a windows handle to a Bitmap.
I need to get this handle into a TImage which can be saved to a file and/or displayed as part of an image component on the background of my form.
I have been able to get a HDC to the bitmap and draw on the bitmap... but I cannot figure out how to "copy" the data into a TImage.
MyHDC := CreateCompatibleDC(0);
// ' Selects entire bitmap to this DC
I'm sure I'm just missing something simple.