Image Frame Options Example for C++ 5.0 and later

void TestImageOptions(ILEADRasterTwain * pRasterTwain)
{
   short nUnit, nBPP;

   pRasterTwain->get_ImageUnit (&nUnit);
   pRasterTwain->get_ImageBitsPerPixel (&nBPP);

   if (nUnit != L_TWUN_INCHES)
      pRasterTwain->put_ImageUnit (L_TWUN_INCHES);

   if (nBPP != 24)
      pRasterTwain->put_ImageBitsPerPixel (24);
}