Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Прочее";
Текущий архив: 2008.05.18;
Скачать: [xml.tar.bz2];

Вниз

TWAIN   Найти похожие ветки 

 
homm ©   (2008-04-02 22:45) [0]

Как с ним вообще работать напрямую? Куда подключаться? Где доки искать?
В яндекс не посылать, он предлагает EZTW32.dll. EZTW32.dll не предлагать, она не верно считывает картинку с фотика. (фотошоп и ворд — верно)


 
tesseract ©   (2008-04-02 22:54) [1]

Сколько знаю TWAIN сложностью не отличаеться.  http://twain.org/  - рулит.
Напрямую ? TWAIN вообще не устройство - TWAIN это соглашение о написание драйверов.


 
Ega23 ©   (2008-04-02 22:54) [2]

Я eztwain.obj исользовал. Читалось всё корректно.


 
DVM ©   (2008-04-02 23:02) [3]


> homm ©   (02.04.08 22:45)  

Посмотри вот это:

{******************************************************************}
{                                                                  }
{ Borland Delphi Runtime Library                                   }
{ Twain interface unit                                             }
{                                                                  }
{ Portions created by TWAIN Working Group,                         }
{ see Copyright statement from original file below                 }
{                                                                  }
{ The original file is: twain.h, released March 15, 2000.          }
{ The original Pascal code is: twain.pas, released 20. Dez 1999.   }
{ The initial developer of the Pascal code is: Uli Tessel (UT)     }
{ (UliTessel@swol.de) with help of Matthias Thoma (MT)             }
{ (ma.thoma@gmx.de)                                                }
{ Translation cleaned up and updated to twain 1.9 by:              }
{ Martin Olsson (MO), mnemo@home.se                                }
{                                                                  }
{ Obtained through:                                                }
{ Joint Endeavour of Delphi Innovators (Project JEDI)              }
{                                                                  }
{ You may retrieve the latest version of this file at the Project  }
{ JEDI home page, located at http://delphi-jedi.org                }
{                                                                  }
{ The contents of this file are used with permission, subject to   }
{ the Mozilla Public License Version 1.1 (the "License"); you may  }
{ not use this file except in compliance with the License. You may }
{ obtain a copy of the License at                                  }
{ http://www.mozilla.org/MPL/MPL-1.1.html                          }
{                                                                  }
{ Software distributed under the License is distributed on an      }
{ "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or   }
{ implied. See the License for the specific language governing     }
{ rights and limitations under the License.                        }
{                                                                  }
{******************************************************************}

{ ========================================================================

Copyright (C) 1991, 1992 TWAIN Working Group: Aldus, Caere, Eastman-Kodak,
Hewlett-Packard and Logitech Corporations. All rights reserved.

Copyright (C) 1997 TWAIN Working Group: Bell+Howell, Canon, DocuMagix,
Fujitsu, Genoa Technology, Hewlett-Packard, Kofax Imaging Products, and
Ricoh Corporation. All rights reserved.

Copyright © 1998 TWAIN Working Group: Adobe Systems Incorporated,
Canon Information Systems, Eastman Kodak Company,
Fujitsu Computer Products of America, Genoa Technology,
Hewlett-Packard Company, Intel Corporation, Kofax Image Products,
JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
All rights reserved.

Copyright © 2000 TWAIN Working Group: Adobe Systems Incorporated,
Canon Information Systems, Digimarc Corporation, Eastman Kodak Company,
Fujitsu Computer Products of America, Hewlett-Packard Company,
JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
All rights reserved.

TWAIN.h - This is the definitive include file for applications and
    data sources written to the TWAIN specification.
    It defines constants, data structures, messages etc.
    for the public interface to TWAIN.

Revision History:
 version 1.0, March 6, 1992. TWAIN 1.0.
 version 1.1, January 1993.  Tech Notes 1.1
 version 1.5, June 1993.   Specification Update 1.5
                Change DC to TW
                Change filename from DC.H to TWAIN.H
 version 1.5, July 1993.   Remove spaces from country identifiers

 version 1.7, July 1997    Added Capabilities and data structure for
                document imaging and digital cameras.
                KHL.
 version 1.7, July 1997    Inserted Borland compatibile structure packing
                directives provided by Mentor. JMH
 version 1.7, Aug 1997    Expanded file tabs to spaces.
                NOTE: future authors should be sure to have
                their editors set to automatically expand tabs
                to spaces (original tab setting was 4 spaces).
 version 1.7, Sept 1997    Added job control values
                Added return codes
 version 1.7, Sept 1997    changed definition of pRGBRESPONSE to
                pTW_RGBRESPONSE
 version 1.7 Aug 1998    Added missing TWEI_BARCODEROTATION values
                TWBCOR_ types JMH
 version 1.8 August 1998   Added new types and definitions required
                for 1.8 Specification JMH
 version 1.8 January 1999  Changed search mode from SRCH_ to TWBD_ as
                in 1.8 Specification, added TWBT_MAXICODE  JMH
 version 1.8  January 1999    Removed undocumented duplicate AUTO<cap> JMH
 version 1.8  March 1999      Removed undocumented 1.8 caps:
                                CAP_FILESYSTEM
                                CAP_PAPERBINDING
                                CAP_PASSTHRU
                                CAP_POWERDOWNTIME
                                ICAP_AUTODISCARDBLANKPAGES
                              * CAP_PAGEMULTIPLEACQUIRE - is CAP_REACQUIREALLOWED,
                                requires spec change.  JMH
                                Added Mac structure packing modifications JMH
 version 1.9  March 2000      Added new types and definations required
                                for 1.9 Specification MLM
 version 1.9  March 2000      Added ICAP_JPEGQUALITY, TWJQ_ values,
                                updated TWON_PROTOCOLMINOR for Release v1.9 MN

======================================================================== }

{
Revision History for translation:

  Version 1.8.0: 29.08.99 - UT
     Initial translation, based on twain.h, version 1.8

  Version 1.8.1: 12.09.99 - UT
     SizeOf for all structures checked and corrected.
     (Alignment is 2 Bytes for the C Code and "packed record" uses
     1 Byte alignment. Only types using TW_xINT8 are affected)

  Version 1.8.2: 19.12.99 UT
     Added MPL and the other JEDI Statements
     Added EXTERNALSYMS to support C++ Builder
     Created the .PAR file (no Unicode things are used by the TWAIN API?)
     A bit better formatting of the source

  Version 1.8.3: 20.12.99
     MT: Added Delphi-Aliases to the structures (like TTWFrame = TW_FRAME)
     UT: Added missing Externalyms for some constants

  Version 1.9.0: 01.12.00
     MO: Updated translation to conform with twain.h 1.9
     MO: Cleaned up style to to fit JEDI standards
}


 
DVM ©   (2008-04-02 23:05) [4]

и это:

{*******************************************************************

 Delphi Scanner Support Framework
 Copyright (C) 1999 by Uli Tessel

********************************************************************

 Version 0.0:
   Just some tests, not the real framework
   (only shows that native scanning from Delphi works)

********************************************************************}


 
homm ©   (2008-04-02 23:21) [5]

> [3] DVM ©   (02.04.08 23:02)

Спасибо, посмотрю.

Но похоже проблема была не совсем в EZTW32.dll. Насчет фотошопа я наврал, он тоже получает неверную фотографию. С twain.org скачал «TWAIN Developers Toolkit», посмотрел в Twack_32.exe, тот же эффект. Получается только ворд получает правильную фотку. Все 3 программы в общем-то рабоают через один и тот-же диалог ( http://homm86.narod.ru/files/twain2.jpg ) в котором есть предпросмотр, который тоже работает не верно.
Вот так глюк выглядит в фотошопе: http://homm86.narod.ru/files/twain.jpg. Получается, глюк в камере? Тогда как делает ворд?


 
homm ©   (2008-04-02 23:23) [6]

Камера старая, Olimpus с-470.


 
DVM ©   (2008-04-02 23:28) [7]


> homm ©   (02.04.08 23:23) [6]

у меня почти такая же есть с-4000


>  http://homm86.narod.ru/files/twain.jpg.

не открывается.

Кстати, то что я там приводил выше работает через TWAIN_32.DLL.
Что такое EZTW32.dll я не знаю.


 
Ega23 ©   (2008-04-02 23:31) [8]


> homm ©   (02.04.08 23:21) [5]


А TWAIN-драйвер-то установлен?


 
homm ©   (2008-04-02 23:35) [9]

> [7] DVM ©   (02.04.08 23:28)
> не открывается.

Точку убери :)


> [8] Ega23 ©   (02.04.08 23:31)
> А TWAIN-драйвер-то установлен?

Дополнитеьно ничего не ставил. Рискну предположить что работает через то, что поставляется с виндой.
А точнее ставил что-то нагугленное, но через него не работает ничего, а при подключении камеры появляется новый TWAIN-источник, через который вот такая фигня.


 
DVM ©   (2008-04-02 23:38) [10]


> Дополнитеьно ничего не ставил.

Насколько я помню, надо было ставить какие то драйвера (скачивал вроде с сайта олипусовского). Иначе не работало.


 
DVM ©   (2008-04-02 23:41) [11]

вот еще, не твайн правда

http://www.izcity.com/data/foto/print_article384.htm


 
DVM ©   (2008-04-02 23:44) [12]

вот еще http://marssystems.com/inPhoto/


 
Ega23 ©   (2008-04-02 23:45) [13]

Короче, ты с камеры снимки слить можешь?


 
homm ©   (2008-04-02 23:57) [14]

> [13] Ega23 ©   (02.04.08 23:45)
> Короче, ты с камеры снимки слить можешь?

Нет, мне на конкретную камеру по пбольшому счету все равно. Мне нужно в программе предусмотреть подключение TWAIN-устройств. Попробовал, а тут такой глюк. Думал в этой самой EZTW32.dll проблема. Но похоже виновата сама камера или дрйвер из стандартного комплекта. Главное что с моей стороны работало верно. За модули DVM еще раз спасибо, видимо на этом все :)



Страницы: 1 вся ветка

Форум: "Прочее";
Текущий архив: 2008.05.18;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.51 MB
Время: 0.04 c
4-1188899278
Cj
2007-09-04 13:47
2008.05.18
Regedit DDE


2-1208347238
Lady
2008-04-16 16:00
2008.05.18
Как менять ссылку на файл вWebBrowser, не залезая в код ?!


4-1188896231
celerons
2007-09-04 12:57
2008.05.18
RAS WIN API Флаги при создании VPn


2-1208504247
sql
2008-04-18 11:37
2008.05.18
MS SQL 2000


2-1208434063
VlGrig
2008-04-17 16:07
2008.05.18
Как сделать thread так, чтобы вып-ся в нем SQLзапр не вешал проу





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский