Image Options Example for C++ 5.0 and later

void TestEffects(ILEADRasterTwain * pRasterTwain)
{
   float fContrast, fHighlight;

   pRasterTwain->get_ImageContrast (&fContrast);
   pRasterTwain->get_ImageHighlight (&fHighlight);

   CString csMsg;
   csMsg.Format(TEXT("Image Contrst = %d\nImage Highlight = %d\n"), fContrast, fHighlight);
   MessageBox(NULL, csMsg, TEXT("Notice!"), MB_OK);

   pRasterTwain->put_ImageBrightness (100.0);

   pRasterTwain->put_PaperSize(L_TWSS_A4);
   pRasterTwain->put_PaperDirection (L_TWOR_LANDSCAPE);
}