I would like set DPI range in Twain Scanner User Interface. Have a look at below Screenshot. The DPI drop down start from 50 to 600.How can I restrict this from 400 to 600.
I have tried the following code but it just sets the DPI, if user changes from user interface my changes goes away.
TwFix32 f32 = new TwFix32();
f32.FromFloat(400);//value of DPI
TwCapability capX = new TwCapability(TwCap.XResolution, f32.Whole);
rc = dScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, capX);
TwCapability capY= new TwCapability(TwCap.YResolution, f32T.Whole);
rc = dScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, capY);