void Rotation(CImage& self,CImage& dst)//垂直+水平翻转图像
{
self.Destroy();
self.Load("d:\\21.jpg");
dst.Destroy();
dst.Create(self.GetWidth(), self.GetHeight(), self.GetBPP());
CImageDC fzdc(dst);
CImageDC selfdc(self);
self.StretchBlt(fzdc, 0, 0, self.GetWidth(), self.GetHeight(), self.GetWidth(), self.GetHeight(), -self.GetWidth(), -self.GetHeight(), SRCCOPY);
}
void fanzhuan(CImage *src,CImage *dst,int mode){CDC *pDC = CDC::FromHandle(src->GetDC());dst->Create(src->GetWidth(), src->GetHeight(), src->GetBPP());CDC *mDc = CDC::FromHandle(dst->GetDC());SetStretchBltMode(pDC->GetSafeHdc(), HALFTONE);// - 设置高画质模式pDC->SetViewportOrg(src->GetWidth(), 0);//设置StretchBlt(mDc->GetSafeHdc(),0, 0, src->GetWidth(), src->GetHeight(),pDC->GetSafeHdc(), 0, 0, -src->GetWidth()-1, src->GetHeight(), SRCCOPY);// dst->Save("d:\\1.jpg");//存盘查看效果;}