Available in the LEADTOOLS Imaging toolkit. |
Image Frame Options Example for C++ 5.0 and later
ILEADRasterTwain_U * pRasterTwain; HRESULT hr = ::CoCreateInstance(CLSID_LEADRasterTwain_U, NULL, CLSCTX_ALL, IID_ILEADRasterTwain_U, (void **)&pRasterTwain); if (FAILED(hr) || !pRasterTwain) { ::MessageBox (NULL, _TEXT("Failed to create a Raster Twain Object"), _TEXT("Error"), MB_OK); return; } pRasterTwain->InitSession((long)GetSafeHwnd()); pRasterTwain->SelectSource(); ItwFrame_U * pFrame; pRasterTwain->get_ImageFrame (&pFrame); pFrame->LeftMargin = 0; pFrame->TopMargin = 0; pFrame->RightMargin = 8.5; pFrame->BottomMargin = 11; pRasterTwain->put_ImageFrame (pFrame);