熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

C# 制作以動畫的方式顯示圖像[5]

2022-06-13   來源: .NET編程 

matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  matrixMatrix = (float);
  //從進行修改色彩變換矩陣主對角線上的數值
  //依次減少每種色彩分量
  Single count = (float);
  while (count > )
  {
  matrixMatrix = (float)count;
  matrixMatrix = (float)count;
  matrixMatrix = (float)count;
  matrixMatrix = (float)count;
  attributesSetColorMatrix(matrix ColorMatrixFlagDefault ColorAdjustTypeBitmap);
  gDrawImage(MyBitmap new Rectangle( width height)
  width height GraphicsUnitPixel attributes);
  SystemThreadingThreadSleep();
  count = (float)(count );
  }
  }
  catch (Exception ex)
  {
  MessageBoxShow(exMessage 信息提示);
  }
  }

  六 以左右對接的方式顯示圖像 
  
  原理: 首先將圖像分為左右兩部分 然後分別顯示 
  
  代碼:

private void button_Click(object sender EventArgs e)
  {
  //以左右對接方式顯示圖像

[]  []  []  []  []  []  []  []  []  []  


From:http://tw.wingwit.com/Article/program/net/201311/14935.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.