VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1234567[8]910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 13:16:26 03/18/01 Sun
Author: Tim Carter
Subject: Frame support in TScanner

I'm trying to add frame support to TScanner. I've copied some test code that I found in enscan.pas but the image frame doesn't change. I always get the default height as set by the twain interface.

twImageLayout.Frame.Left := SingleToFix32(0);
twImageLayout.Frame.Top := SingleToFix32(0);
twImageLayout.Frame.Right := SingleToFix32(8.5);
twImageLayout.Frame.Bottom := SingleToFix32fPageHeight);
twImageLayout.DocumentNumber := 1;
twImageLayout.PageNumber := 1;
twImageLayout.FrameNumber := 1;

CallTriplet( @FTwainData.AppId,
@FTwainData.SourceId,
DG_IMAGE,
DAT_IMAGELAYOUT,
MSG_SET,
TW_MEMREF(@twImageLayout),
@twRC, FTwainData.DsmEntry
);

Was there any more work done on the SetLayout procedure?

The units are set to inches. The scanner is a Fujitsu 309dc with auto doc feeder.

btw, I'm using Envision for an internal imaging project and it has been working for us beautifully. Thanks.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.