![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
在行进路上
这个作者很懒,什么都没留下…
展开
-
GDI+ BitMap save 保存图像
Bitmap *image = new Bitmap(_T("d://2.jpg"));image->RotateFlip(Rotate90FlipX);CDC* pDC = GetDC();Graphics graph(pDC->GetSafeHdc());graph.SetInterpolationMode(InterpolationModeLowQuality);graph.D原创 2017-10-07 16:00:43 · 8522 阅读 · 0 评论 -
ImageMagick (Magick++ for C++) configuration in Visual Studio 2017
原文地址:http://www.cnblogs.com/zhanxiage1994/p/6813784.html网上的ImageMagick资料真心不多啊,而且由于版本战线太长,导致很混乱。最初在网上搜了很多配置方案,都运行不过去,最后无意间看到打开的vs工程中#include ,决定直接按照opencv的配置方法试试,还真跑通了。只需要简单几步而已。运行环境: windo转载 2017-10-09 08:48:25 · 1117 阅读 · 2 评论 -
gdi+图像裁剪
一、实现图像裁剪CImage image1;//不知道为什么,没有这两句不能正常显示,哪位大神知道告诉我一下image1.Load(L"");//不知道为什么,没有这两句不能正常显示,哪位大神知道告诉我一下CDC* pDC = GetDC();Graphics graph(pDC->GetSafeHdc());Bitmap *image = new Bitmap(_T("d://2.j原创 2017-10-09 22:55:44 · 2345 阅读 · 0 评论 -
gdi+图像去污
一、图像去污,去除图像中的不必要区域,其实就是用指定的颜色覆盖指定区域。二、使用GDI+中的画刷SolidBrush实现,使用FillRectangle填充即可实现。三、实现过程如下Image* FixedSize2(Image *imgSrc, int Width, int Height){ int w, h; w = imgSrc->GetWidth(); h = im原创 2017-10-10 09:42:26 · 942 阅读 · 0 评论 -
GDI+图像合并
一、图像拼接,图像合并,将两张图片合成一张图片Image* FixedSize3(Image *imgSrc1, Image *imgSrc2){ Bitmap *bmPhoto = new Bitmap(imgSrc1->GetWidth()+ imgSrc2->GetWidth(), imgSrc1->GetHeight()); bmPhoto->SetResolution(imgS原创 2017-10-10 15:07:59 · 2501 阅读 · 1 评论 -
GDI+图像去污——四周去污
一、GDI+实现四周去污,只保留图像选定区域的内容,选定区域外的部分用背景色填充Image* FixedSize4(Image *imgSrc, int Width, int Height){ Bitmap *bmPhoto = new Bitmap(imgSrc->GetWidth(), imgSrc->GetHeight()); bmPhoto->SetResolution(imgS原创 2017-10-10 16:27:51 · 1569 阅读 · 0 评论