SaveWithStamp example for C++ Builder

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

   LEADRasterIO* pRasterIO= NULL;

   CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);

   LEADRasterView1->ScaleMode = 3; // Use pixels for sizing the thumbnail
   pRasterIO->SaveWithStamp (LEADRasterView1->Raster, AnsiToOLESTR("d:\\Pictures\\stamp.jpg"),
                       FILE_JFIF, 24, (QFactorConstants)30, 150, 100, 24);
   pRasterIO->LoadStamp (LEADRasterView1->Raster, AnsiToOLESTR("d:\\pictures\\stamp.jpg"));
   LEADRasterView1->ForceRepaint ();
   pRasterIO-> Release( );