ltwain :: setImageFrame

#include“ ltwrappr.h”

皮棉ltwain :: setImageFrame(pframe);

设置从当前Twain源传输图像时使用的图像框架。

参数

ptw_framepframe

指向包含要设置的图像帧值的变量。

返回

价值 意义
成功 功能成功。
<1 发生错误。参考返回代码

注释

图像框架指定要获取图像的大小和位置。要获得当前的图像帧值,请致电ltwain :: getimageFrame功能。

必需的DLL和库

也可以看看

功能

话题

例子

tw_fix32 floattotwfix32(漂浮浮子){TW_FIX32 FIX32;TW_INT32 INT32 =(TW_INT32)(floater * 65536.0 + 0.5);fix32.whole =(TW_INT16)(INT32 >> 16);FIX32.FRAC =(TW_UINT16)(INT32&0x0000FFFFL);返回fix32;}l_int ltwain__setimageFrameExample(ltwain * pltwain){l_int nret =成功;TW_Frame框架;nret = pltwain-> getImageFrame(&Frame);如果(nret ==成功){frame.left = floattotwfix32(0);frame.top = floattotwfix32(0);frame.right = floattotwfix32(8.5);frame.bottom = floattotwfix32(11);nret = pltwain-> setImageFrame(&Frame);如果(nret!=成功)返回nret;}别的返回nret;返回成功;}
LeadTools Twain C ++类库帮助
188金宝搏的网址客服|支持|联系我们|知识产权通知
©1991-2021Lead Technologies,Inc。版权所有。