matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
matrix
Matrix
= (float)
;
//從
到
進行修改色彩變換矩陣主對角線上的數值
//使三種基准色的飽和度漸增
Single count = (float)
;
while (count <
)
{
matrix
Matrix
= count;
matrix
Matrix
= count;
matrix
Matrix
= count;
matrix
Matrix
= count;
attributes
SetColorMatrix(matrix
ColorMatrixFlag
Default
ColorAdjustType
Bitmap);
g
DrawImage(MyBitmap
new Rectangle(
width
height)
width
height
GraphicsUnit
Pixel
attributes);
System
Threading
Thread
Sleep(
);
count = (float)(count +
);
}
}
catch (Exception ex)
{
MessageBox
Show(ex
Message
信息提示
);
}
}
private void button
_Click(object sender
EventArgs e)
{
try
{
Graphics g = this
panel
CreateGraphics();
g
Clear(Color
Gray);
int width = MyBitmap
Width;
int height = MyBitmap
Height;
ImageAttributes attributes = new ImageAttributes();
ColorMatrix matrix = new ColorMatrix();
//創建淡出顏色矩陣
[] [] [] [] [] [] [] [] [] []
From:http://tw.wingwit.com/Article/program/net/201311/14934.html