BitBlt from an image control
Posted on 2000-03-26
I have used picture boxes and the API function BitBlt without any problem. The picture box has a hDC handle for the API function.
I am now using an image control and need to BitBlt the image to a form and/or printer hDc. I need the image control for it's stetch attribute,which a picture box does not have. Anyone know of a way to get the hDc for an image control, or another method to move this image directory to a form or printer hDc?
The only thing I thought of, is, when I need to put the image, is move the image control picture to a hidden picture box, and then use StretchBlt to put the image on the form, from the piture box. A bit of coding and processor cycles. Any other ideas?