SaveWithStamp example for C++ 4.0 and later

This example saves the image in a JPEG file that includes a thumbnail (stamp) image. It then loads the thumbnail from the new file.

int SavedMode = m_Lead1.GetScaleMode();
m_Lead1.SetScaleMode(3); // Use pixels for sizing the thumbnail
m_Lead1.SaveWithStamp("c:\\lead\\images\\stamp.jpg", FILE_JPEG, 24, 30, 150.0f, 100.0f, 24);
m_Lead1.SetScaleMode(SavedMode);
m_Lead1.LoadStamp("c:\\lead\\images\\stamp.jpg");
m_Lead1.ForceRepaint();