Quantcast
Channel: Saraff.Twain.NET
Viewing all articles
Browse latest Browse all 419

New Post: How to set TPU width for a Epson Scanner

$
0
0
Hello Andrei,

I use in my program this statement:
    this._twain.ImageLayout =  new RectangleF( imgXFC,imgYFC,imgWidthFC,imgHeightFC);   
but the maximum image width (float - converted [ FC ] from millimeter to inch) is 5.9 inches (or about 150 mm).
In Epson Scan the maximum image width can be up to 210 millimeter, if document type "Film with area guide" is selected in the EpsonScan GUI.

In SaraffTwain I can specify 'transmissive', but when capability 'transmissive' is set, the maximum image width is 150 mm,

And this is the physical TPU width if I query that (from the scanner). But really the physical sensor width is 210 mm.

    /// <summary>
    /// Evaluates the physical width and height of the current TPU in inches
    /// </summary>
    public float[] GetTPUDimensions()
    {
       float[] aSize  =  new float[2] { 0, 0 };
       this._twain.Capabilities.LightPath.Set(TwLP.Transmissive);
       physicalHeight = (float) _twain.Capabilities.PhysicalHeight.GetCurrent();
       physicalWidth  = (float) _twain.Capabilities.PhysicalWidth.GetCurrent();
       aSize[0] = physicalHeight;
       aSize[1] = physicalWidth;
       return aSize;         }

The question is: how can I achieve a maximum image width of 210 mm or 8.5 inches
if __Capabilities.LightPath.Set(TwLP.Transmissive) __ is set.

Wolfgang

Viewing all articles
Browse latest Browse all 419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>