# twain4java
**Repository Path**: yang_h_z/twain4java
## Basic Information
- **Project Name**: twain4java
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2023-11-24
- **Last Updated**: 2024-02-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Twain Java Library
Java library for Windows x86 и x64.
## Tested on
- [x] Kyocera Exosys M2040dn (NET, USB)
- [x] HP MFP 1102 (NET)
- [x] Xerox USB
- [x] Cannon USB
- [ ] ...
## Usage
**Compile and install**
Clone project and install in local repository.
```shell
git clone https://github.com/DenisLAD/twain4java.git
cd twain4java
mvn install
```
**Dependency in your project**
```xml
free.lucifer
twain4java
0.3
```
**Code**
```java
Collection sources = SourceManager.instance().getSources();
Source source = sources.get(0);
source.setDpi(200);
source.setColor(Source.ColorMode.COLOR);
List files = source.scan();
```