鸽
鸽子-
Unregistered / Unconfirmed
GUEST, unregistred user!
我需要从扫描仪得到一个灰度,500dpi有图像,在扫描时不需要用户干涉,并且可以设置固定大小的扫描区域。
我现在只有Eztw32.Dll,在使用时老报错(Attempt to set capability outside State 4);
fileName := 'D:/image.bmp';
TWAIN_SetHideUI(1);
TWAIN_SetCurrentResolution(strtoint(edit3.Text));
TWAIN_SetCurrentPixelType(TWPT_GRAY);
if TWAIN_OpenDefaultSource()=1 then
begin
t:=TWAIN_GetCurrentResolution();
edit2.text :=floattostr(t);
image1.Picture.LoadFromFile(fileName);
end;
TWAIN_CloseSource;
在设置DPI时出错,这是为什么?用法不对吗?
我现在只有Eztw32.Dll,在使用时老报错(Attempt to set capability outside State 4);
fileName := 'D:/image.bmp';
TWAIN_SetHideUI(1);
TWAIN_SetCurrentResolution(strtoint(edit3.Text));
TWAIN_SetCurrentPixelType(TWPT_GRAY);
if TWAIN_OpenDefaultSource()=1 then
begin
t:=TWAIN_GetCurrentResolution();
edit2.text :=floattostr(t);
image1.Picture.LoadFromFile(fileName);
end;
TWAIN_CloseSource;
在设置DPI时出错,这是为什么?用法不对吗?