Forums › TWAIN Classic › Get DPI ? › Re: Re: DPI
June 15, 2007 at 2:53 pm
#23638
@Victor wrote:
I write my progrem in C#. I Changed resolution in this way:
TwRC rc;
TwCapability tc;
TwFix32 f32 = new TwFix32();
f32.FromFloat(100);//value of DPI
tc = new TwCapability(TwCap.Xresolution, f32);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, tc);
if (rc != TwRC.Success) {
CloseSrc();
return false;
}
Dude! That doesn’t work..
tc = new TwCapability(TwCap.Xresolution, f32);
TwCapability only takes short value??