Forum Replies Created
- AuthorPosts
Now I use the Twack_32.exe program.
it could set up the DPI, but not the brightness.(through the capability setting, state workflow in special menu)so i really really curious about how the default UI did this to set the brightness. waiting for the replies…..
Is that any twain version issue?
since the twain_32.dll already in the C:WINDOWS, created in Wednesday, August 04, 2004, I removed it, but when I run our program, it will automatically generated again.(I wonder why)
and the BenQ disc folder twain_32.dll created in Tuesday, October 22, 1996.internal class TwRANGE{
ushort ItemType;
TwFix32 MinValue; /* Starting value in the range. */
TwFix32 MaxValue; /* Final value in the range. */
int StepSize; /* Increment from MinValue to MaxValue. */
TwFix32 DefaultValue; /* Power-up value. */
TwFix32 CurrentValue; /* The value that is currently in effect. */}
Now I using this, so the capa showing correct.
MaxValue 1000,
MinValue -1000;
Current Value -800.
itemType 7
stepSize 1
defaultValue 0
but the problem is that the image scanned stay no change at all.jimwatters, Thank you.
yes, when I do the MSG_GET, No matter what container I set, I just got the Container Type 6 returned.
so I use the Range Cap.And Acctually i can successfully get the ICAP_XRESOLUTION.
MaxValue 1200,
MinValue 12;
Current Value 55 //setted successfully
itemType 7
stepSize 1
defaultValue 150What’s the difference between these two capability? Do I need to use Range ContainerType to set the brightness Capa? currently all capa setting use onevalue contype.
Thanks for Thierry’s reply, yes, I change this
internal class TwRANGE{
ushort ItemType;
int MinValue; /* Starting value in the range. */
int MaxValue; /* Final value in the range. */
int StepSize; /* Increment from MinValue to MaxValue. */
int DefaultValue; /* Power-up value. */
int CurrentValue; /* The value that is currently in effect. */
}
but it still get the same result.
MaxValue 1000,
MinValue 64536;
Current Value 65636.
itemType 7
stepSize 1
defaultValue 0
do you mean that I should do some converter work?Our program need to disable the default UI. so we do the following code.
set the capability,
TwCapability capBrightness = new TwCapability(TwCap.ICAP_BRIGHTNESS, 100, TwType.Fix32);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, capBrightness);
if (rc != TwRC.Success)
{
CloseSrc();
return;
}
get the capability.
TwCapability capbright = new TwCapability(TwCap.ICAP_BRIGHTNESS, TwOn.Range, TwType.Fix32, -1);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Get, capbright);
if (rc != TwRC.Success)
{
CloseSrc();
return;
}
else
{
TwRANGE arr = capbright.GetTwRange();
//TwRANGE arr = (TwRANGE)Marshal.PtrToStructure(Twain.GlobalLock(Handle), typeof(TwRANGE));
}
internal class TwRANGE{
ushort ItemType;
uint MinValue; /* Starting value in the range. */
uint MaxValue; /* Final value in the range. */
uint StepSize; /* Increment from MinValue to MaxValue. */
uint DefaultValue; /* Power-up value. */
uint CurrentValue; /* The value that is currently in effect. */
}
But I find that its
MaxValue 1000,
MinValue 64536;
Current Value 65636.
So what is the problem? I could set brightness in the Default UI, but why i can’t set in our Customized Acquire?????
And I didn’t quite understand what Zoltan Barna said that to use commercial drivers ? to use different version of twain_32.dll ?- AuthorPosts