{
j=k*2;
high = digest[k] /16;
low = digest[k] %16;
if (high >=10)
{
num[j]= (unsigned char)(high-10+'A');
}
else
{
num[j]= (unsigned char)(high+'0');
}
if (low >=10)
{
num[j+1]= (unsigned char)(low-10+'A');
}
else
{
num[j+1]= (unsigned char)(low+'0');
}
}

   switch (num[tempm])
  { case '0': wf[i].line=55;break;
    case '1': wf[i].line=1;break;
    case '2': wf[i].line=3;break;
    case '3': wf[i].line=4;break;
    case '4': wf[i].line=6;break;
    case '5': wf[i].line=7;break;
    case '6': wf[i].line=9;break;
    case '7': wf[i].line=10;break;
    case '8': wf[i].line=11;break;
    case '9': wf[i].line=20;break;
    case 'A': wf[i].line=23;break;
    case 'B': wf[i].line=25;break;
    case 'C': wf[i].line=26;break;
    case 'D': wf[i].line=27;break;
    case 'E': wf[i].line=39;break;
    case 'F': wf[i].line=43;break;
  }
  if ((num[tempm+1]>'8') && (num[tempm+2]>'8') && (num[tempm+3]>'8'))
  {wf[i].color=RGB(255,255,255);}
  if ((num[tempm+1]>'8') && (num[tempm+2]>'8') && (num[tempm+3]<='8'))
  {wf[i].color=RGB(255,255,254);}
  if ((num[tempm+1]>'8') && (num[tempm+2]<='8') && (num[tempm+3]>'8'))
  {wf[i].color=RGB(255,254,255);}
  if ((num[tempm+1]>'8') && (num[tempm+2]<='8') && (num[tempm+3]<='8'))
  {wf[i].color=RGB(255,254,254);}
  if ((num[tempm+1]<='8') && (num[tempm+2]>'8') && (num[tempm+3]>'8'))
  {wf[i].color=RGB(254,255,255);}
  if ((num[tempm+1]<='8') && (num[tempm+2]>'8') && (num[tempm+3]<='8'))
  {wf[i].color=RGB(254,255,254);}
  if ((num[tempm+1]<='8') && (num[tempm+2]<='8') && (num[tempm+3]>'8'))
  {wf[i].color=RGB(254,254,255);}
  if ((num[tempm+1]<='8') && (num[tempm+2]<='8') && (num[tempm+3]<='8'))
  {wf[i].color=RGB(254,254,254);}
}
(3) 提取已嵌入水印并检测水印。
   font.AttachDispatch (sel.GetFont());
font.GetUnderlineColor();
 font.GetUnderline();
 
 tempsum=tempsum+m;
   
for (i=m;i>=1;i--)
  {
      sel.MoveLeft(COleVariant((short)1),COleVariant((short)1),COleVariant((short)1));
      

    
      if ((font.GetUnderlineColor()!=wf[i].color) || (font.GetUnderline()!=wf[i].line))
      {     
    tempwrong=m-2*i+1;
    if (tempwrong>0)
    {sel.MoveLeft(COleVariant((short)1),COleVariant((short)(tempwrong)),COleVariant((short)1));
sel.MoveLeft(COleVariant((short)1),COleVariant((short)1),COleVariant((short)0));
sel.MoveLeft(COleVariant((short)1),COleVariant((short)1),COleVariant((short)1));
     fontwrong.AttachDispatch(sel.GetFont());
    fontwrong.SetStrikeThrough(1);
上一篇:基于webform的在线考试系统+用例图+文献综述
下一篇:Ford–Fulkerson算法铁路运输系统中车辆流问题的研究

基于android的环境信息管理系统设计

基于激光超声检测金属材...

基于MOODLE平台的在线交互式学习设计

基于离散事件系统Petri网模型的可达图研究

基于高斯过程动态模型的时序数据恢复方法

基于深度学习的目标识别算法研究

MATLAB基于流形学习与神经网络的预测建模

STC89C52单片机NRF24L01的无线病房呼叫系统设计

基于Joomla平台的计算机学院网站设计与开发

上海居民的社会参与研究

酵母菌发酵生产天然香料...

从政策角度谈黑龙江對俄...

提高教育质量,构建大學生...

浅论职工思想政治工作茬...

压疮高危人群的标准化中...

AES算法GPU协处理下分组加...

浅谈高校行政管理人员的...