This example creates a new blank image and then places a company logo at the top of the new page.
void CImgEdit1Dlg::OnImageStamp()
{
// Create a new 8 1/2 X 11" black and white image at 100 dpi
VARIANT vPageType; V_VT(&vPageType) = VT_I2; // set to PageType for saveas
V_I2(&vPageType) = 1; // wiPageTypeBW
VARIANT vRes; V_VT(&vRes) = VT_I4; V_I4(&vRes) = 100;
ImgEdit1.DisplayBlankImage (850, 1100, vRes, vRes, vPageType);
ImgEdit1.SetAnnotationImage("D:\\image2\\corplogo.bmp");
// Logo would obscure any text under it if Opaque
ImgEdit1.SetAnnotationFillStyle(1); // wiOpaque // 1
// If image is embedded rather than referenced, the source
// image need not be present when the image is displayed
ImgEdit1.SetAnnotationType(5); // wiImageEmbedded // 5
// Image mark only requires left and top parameters to draw
// Start not quite halfway across page, 25 pixels from top (1/4")
VARIANT evt; V_VT(&evt) = VT_ERROR; // set to default
ImgEdit1.Draw(350, 25, evt, evt);
}