我用的是VC6.0的 下面是变灰的,我就是不知道怎么变成其他颜色
ColorMatrix clrMatrix;
ColorMatrix matrix = {
0.299f, 0.299f, 0.299f, 0.0f, 0.0f,
0.587f, 0.587f, 0.587f, 0.0f, 0.0f,
0.114f, 0.114f, 0.114f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f, 1.0f };clrMatrix = matrix;
imAtt.SetColorMatrix(&clrMatrix,olorMatrixFlagsDefault,ColorAdjustTypeBitmap );
imageGraphics->DrawImage( pDoc->m_pSelectedImage,Rect(0,0,W,H), 0,0,W,H, UnitPixel,
&imAtt );
ColorMatrix clrMatrix;
ColorMatrix matrix = {
0.299f, 0.299f, 0.299f, 0.0f, 0.0f,
0.587f, 0.587f, 0.587f, 0.0f, 0.0f,
0.114f, 0.114f, 0.114f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f, 1.0f };clrMatrix = matrix;
imAtt.SetColorMatrix(&clrMatrix,olorMatrixFlagsDefault,ColorAdjustTypeBitmap );
imageGraphics->DrawImage( pDoc->m_pSelectedImage,Rect(0,0,W,H), 0,0,W,H, UnitPixel,
&imAtt );
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货