1.实现红色部分变蓝
#include<iostream>
#include<atlimage.h>
using namespace std;
void swapRGWhenGedMax(COLORREF &c)
{
int r = GetRValue(c);
int g = GetGValue(c);
int b = GetBValue(c);
if (r > g && r > b)
{
swap(r, b);
}
c = RGB(r, g, b);
}
int main()
{
const char *srcFilePath = "1a.jpg";
const char *destFilePath = "1b.jpg";
CImage srclmage;