Picturize example for C++ 5.0 and later

// replace the current image in the main control with an image created
// from all the images present in c:\images. Resize all images present in that directory
// to 8x8 pixels and load them all in memory before proceeding

 ILEADRasterProcess *pRasterProc=NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
      IID_ILEADRasterProcess, (void**)&pRasterProc);
   
   m_LEADRasterView1.SetScaleMode(SCALEMODE_PIXEL);
   pRasterProc->Picturize(
      m_LEADRasterView1.GetRaster(), 
      "d:\\erase\\images", 
      (PicturizeConstants)(PICTURIZE_LOADALL | PICTURIZE_RESIZE), 
      8, 
      8);
   
   pRasterProc->Release();