1 2 3 | /* Property *//* Scan pages in 200 DPI */DWObject.Resolution = 200; |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | // Method ///<summary> /// Rotates the image of a specified index in buffer by a specified angle. /// </summary>///<param name="sImageIndex" type="short" data-filtered="filtered">specifies the index of image in buffer. The index is 0-based.///<param name="fAngle" type="float" data-filtered="filtered">specifies the angle.///<param name="bKeepSize" type="bool" data-filtered="filtered">specifies whether to keep the original size///<returns type="bool" data-filtered="filtered"></returns>DWObject.Rotate(0, 45, false); // rotate the 1st image in the buffer by 45 degrees |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <script type="text/javascript" data-filtered="filtered">Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);var DWObject;/* OnWebTwainReady event fires as soon as Dynamic Web TWAIN is initialized and ready to be used. It is the best place to add event listeners */function Dynamsoft_OnReady() { DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); DWObject.RegisterEvent("OnPostTransfer", Dynamsoft_OnPostTransfer);}function Dynamsoft_OnPostTransfer() { /* This event OnPostTransfer will be triggered after a transfer ends. */ /* your code goes here*/}</script> |
1 2 3 4 5 6 7 8 9 10 | <script type="text/javascript" data-filtered="filtered">Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);var DWObject;function Dynamsoft_OnReady() { DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); DWObject.RegisterEvent("OnPostTransfer", function() { /* your code goes here*/ });}</script> |
1 2 | /* sImageIndex is the index of the image you clicked on*/OnMouseClick(short sImageIndex) |
1 2 3 | function DynamicWebTwain_OnMouseClick(index) { CurrentImage.value = index + 1;} |
1 2 3 | DWObject.RegisterEvent("OnPostTransfer", function(index) { CurrentImage.value = index + 1;}); |
1 2 3 4 5 6 7 | <script type="text/javascript" data-filtered="filtered">Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);var DWObject;function Dynamsoft_OnReady() { DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');}</script> |
1 2 3 4 5 | <script type="text/javascript" data-filtered="filtered"> Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', function() { DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); });</script> |
本次教程到此结束,希望能对Dynamic Web TWAIN的用户带来帮助,接下来还会有更多的相关教程,敬请期待!
2017慧都十四周年狂欢搞事情,全场产品折扣风暴来袭!砸金蛋100%抽现金红包、满额豪送iPhone X、iPhone 8、DevExpress汉化免费送、团队升级培训套包劲省10万元......更多惊喜等您来探索!
2003年11月,慧都破茧而出;
2017年11月,慧都已崛世而立。
14岁了,搞件大事情——创造折扣奇迹!
这个狂欢月,就要躁!起!来!
七大玩法,花样玩赚周年趴!
狂欢时间:2017.11.1-2017.11.30
![]() 下单即送砸金蛋机会 100%抽微信现金红包 188元、88元、18元等你领取!
| |
全场满额豪送iPhone X! --------------------- 购买慧都任意产品 满额即送8级好礼 iPhone X、iPhone8速速领走! | DevExpress庆周年 --------------------- DevExpress汉化资源免费送 DEV团队培训套包 最高立省10万元
|
慧都学院培训“拼拼团” --------------------- 不要998!不要888! 只要1分钱! 立抢DevExpress/Kendo UI研修班团购优惠名额! |
全场热销产品7折起 --------------------- Kendo UI、Aspose、BCGSoft、Dynamsoft等产品 超低折扣等你来! 葡萄城GrapeCity更享专属折扣 |
在线商城 聚惠再续 --------------------- MyEclipse个人授权低至6.9折! 在线订购商城全场优惠促销 下单还送砸金蛋机会 | 周年送祝福 好礼齐掉落 --------------------- 您送祝福,我送好礼 提交周年祝福、评价等 随机获取定制台历、保温杯或雨伞! |
关注的产品没在促销活动中?不用担心,点击咨询在线客服有意想不到的惊喜哦!
慧都十四周年狂欢开启,Dynamic Web TWAIN终极让利7折特惠
限时一个月,错过不再有,马上咨询>>>试用、下载、了解更多产品信息请点击"咨询在线客服"




试用、下载、了解更多产品信息请点击"咨询在线客服"
