I'm not sure why you might need this, but this example shows how you can draw onto a StdPicture (type of bitmap only). Works whether currently assigned to a control or freestanding, such as loaded via LoadPicture().
The demo uses GDI calls by using the IPicture interface's SelectPicture() method to open/close the picture for drawing operations.
This demo doesn't show it, but it can also be used to draw to the persistent bitmap (Image property) of a Form, UserControl, or PictureBox while AutoRedraw = False. However it does show drawing to an Image control's Picture property.
Once again: these can't be icons or metafiles, only bitmaps.
The demo uses GDI calls by using the IPicture interface's SelectPicture() method to open/close the picture for drawing operations.
This demo doesn't show it, but it can also be used to draw to the persistent bitmap (Image property) of a Form, UserControl, or PictureBox while AutoRedraw = False. However it does show drawing to an Image control's Picture property.
Once again: these can't be icons or metafiles, only bitmaps.