Home › Forums › TWAIN Classic › scan in .jpg › Reply To: scan in .jpg
June 1, 2007 at 7:14 am #23824
1) Check that source supports jpg with ImageFileFormat.Get.
2) Set to jpg is it isn’t already set with ImageFileFormat.Set.
3) Double check that #2 is right with ImageFileFormat.Get.
4) Execute Control.SetupFileXfer.Set and pass in a twSetupFileXfer structure making sure you set the .Format and .Filename fields appropriately.
It shouldn’t be much trickier than this. If you read .net code look at the method TransferPicturesAsFile in the ctwain.vb file in my source over at codeplex/openTwain.
If you have more questions, just ask.
.