This action will force synchronization from 精易科技/eapi, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#include "..\include_eapi_header.h"inline double ChangeUnit(double srval, int src, int target){double result;if (src == target){result = srval;}else{result = 0.0;switch (src){case 2:if (target){if (target == 1){result = srval * 0.0394;}else if (target == 3){result = srval * 0.1;}}else{result = srval * 2.8368;}break;case 3:if (target){if (target == 1){result = srval * 0.394;}else if (target == 2){result = srval * 10.0;}}else{result = srval * 28.368;}break;case 1:if (target){if (target == 2){result = srval * 25.38071065989848;}else if (target == 3){result = srval * 2.538071065989848;}}else{result = srval * 72.0;}break;case 0:switch (target){case 1:result = srval * 0.01388888888888889;break;case 2:result = srval * 0.3525098702763678;break;case 3:result = srval * 0.03525098702763678;break;}break;default:return result;}}return result;}// 调用格式: SDT_DOUBLE 屏幕单位转换, 命令说明: NULL// 参数<1>: 源单位值 SDT_DOUBLE, 参数说明: "屏幕显示区域的宽度,单位为像素点。"// 参数<2>: [源单位 SDT_INT], 参数说明: "单位类型,为以下常量值之一:0、#接口常量.像素;1、#接口常量.英寸;2、#接口常量.毫米;3、#接口常量.厘米。"// 参数<3>: [目的单位 SDT_INT], 参数说明: "单位类型,为以下常量值之一:0、#接口常量.像素;1、#接口常量.英寸;2、#接口常量.毫米;3、#接口常量.厘米。"EAPI_EXTERN_C void eapi_ChangeUnit_70_eapi(PMDATA_INF pRetData, INT nArgCount, PMDATA_INF pArgInf){int lp = 0, wp = 2;if (pArgInf[1].m_dtDataType && pArgInf[1].m_dtDataType >= 0 && pArgInf[1].m_dtDataType <= 3){lp = pArgInf[1].m_int;}if (pArgInf[2].m_dtDataType && pArgInf[2].m_dtDataType >= 0 && pArgInf[2].m_dtDataType <= 3){wp = pArgInf[2].m_int;}pRetData->m_double = ChangeUnit(pArgInf[0].m_int, lp, wp);}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。