Skip to content
Scanner Access Now D
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/basic
source/sand
.gitignore
.travis.yml
LICENSE
README.md
dub.json

README.md

SAND

Build Status

SANE Access Now D

SAND provides a D interface to the SANE (Scanner Access Now Easy) C API. The interface is designed to be easy to read and safe to use.

// Initialise sane interface
auto sane = new Sane();
    
// Find all devices
auto devices = sane.devices();
    
// List all options for a device
if(devices.length) {
    auto options = devices[0].options;
    foreach(option; options) {
        writeln(option);
    }
}

To test the code enable the "test" driver in /etc/sane.d/dll.conf (or system equivelent)

You can’t perform that action at this time.