当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: Java doesnt provide a standard A
 

 

    摘要:there is a principle of object-oriented design known as the dependency inversion principle (dip). this principle tells us that we should try to avoid depending on things that are concrete. for example......
 ·keep changes small: a happy jack story    »显示摘要«
    摘要:jack walked into the office one monday morning. underneath his arm, he carried a rolled-up piece of poster paper. he walked to the back of the building, where a group of couches and tables made up the......


Java Tech: Acquire Images with TWAIN and SANE, Part 3

java doesnt provide a standard api for acquiring images from digital cameras, scanners, and other image-acquisition devices. this omission has inspired this three-part java tech series that explores the twain and sane image-acquisition specifications, and how to make use of those specifications in a java context. the previous two articles in this series--the first introducing twain and providing a simple twain library and java application that demonstrates that library, the second on improving on the library and demo application--focused on the twain specification from a microsoft windows perspective, because twains origin lies in the windows world. in contrast, this article largely moves away from twain (and windows), by focusing on the unix-based sane image-acquisition specification.

what is sane? 【程序编程相关:Java源码解读之util.ArrayL

this article begins with an introduction to sane, where you learn about sanes environment, api, and network protocol. the article next explores a java api for acquiring images with sane. moving forward, the article discusses the need for both sane and twain. the article (and series) closes by looking at merging sane with twain into a unified image-acquisition specification. 【推荐阅读:CLR和JRE的运行机制的初步总结

sane was introduced a few years after twain to support (and standardize) image acquisition on unix and linux platforms, because twain could not (and still is not able to) do the job. although sane originated for unix and linux, it has been ported to mac os x, os/2, and other operating systems. 【扩展信息:用BeanShell实现公式管理

sane, an acronym for "scanner access now easy," is an image-capture api. the api provides standardized access to any raster-image scanner, camera, or other kinds of image-acquisition devices. version 1.03 is the current version.

sane is maintained by volunteers who meet at sanes official website (see the resources section for a link to the website). from that website, you can download sane source code and documentation for your unix or linux platform.

make sure to download "sane standard version 1.03" (see resources for a link). that document introduces sane, describes sanes environment, explores the sane api, and discusses sanes network protocol. the three sections below are based on material found in that document.

sane environment

sane provides a standard interface to raster-image devices. applications using that interface are known as sane front ends. drivers that implement that interface and control raster-image devices are known as sane back ends. figure 1 shows the relationship between sane front ends and back ends.

figure 1. relating front ends to back ends


...   下一页
    摘要:at the end of 2004, microsoft will stop supporting windows nt. at that point, anyone using windows nt will have several choices: follow microsofts upgrade path to windows 2003, continue to use windows......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE