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

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

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 = count;
  matrixMatrix = count;
  matrixMatrix = count;
  matrixMatrix = 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)
  {
  
  try
  {
  Graphics g = thispanelCreateGraphics();
  gClear(ColorGray);
  int width = MyBitmapWidth;
  int height = MyBitmapHeight;
  ImageAttributes attributes = new ImageAttributes();
  ColorMatrix matrix = new ColorMatrix();
  //創建淡出顏色矩陣

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


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