2021年1月25日

c++ freeimage 指定颜色透明

摘要: #include <iostream> #include "freeimage.h" #include "FreeImagePlus.h" int main() { const char* srcImagePath = "E:/Desktop/01.tif"; const char* dstImag 阅读全文

posted @ 2021-01-25 18:56 空明流光 阅读(324) 评论(0) 推荐(0)

c++ string 大小写转换

摘要: #include <iostream> using namespace std; #include <algorithm> string ucase(string str) { transform(str.begin(), str.end(), str.begin(), ::toupper); re 阅读全文

posted @ 2021-01-25 18:08 空明流光 阅读(716) 评论(0) 推荐(0)

opencv 裁剪图像

摘要: //读取磁盘图像文件 Mat image = imread(srcImage); //裁剪出一张新图像 Mat partImage = image(Rect(left, top, width, height)); //保存裁剪出的新图像 imwrite("d:\\a.png", partImage) 阅读全文

posted @ 2021-01-25 17:56 空明流光 阅读(2349) 评论(0) 推荐(0)

C++合并多个静态库

摘要: 转自:https://blog.csdn.net/love_hot_girl/article/details/19421363 要发布一个lib库,但是这个库用到了其他几个lib,有没有办法把他们合并成一个呢? 有的! Microsoft 库管理器实用程序 (LIB.EXE) 可用于将两个库合并为一 阅读全文

posted @ 2021-01-25 17:10 空明流光 阅读(1136) 评论(0) 推荐(0)

Base64编码

摘要: 这几天遇到一个问题,解码说base64编码不合法,于是大致了解了一下base64编码原则。 base64编码就是使用64个基本字符来表示编码以后的字符,他们分别是A~Z, a~z,0~9,+ / 但还有一个特殊字符,等号 “=”,base64 编码是将源字节中的每3个字节编码成为目标字符中的4个字符 阅读全文

posted @ 2021-01-25 14:27 空明流光 阅读(433) 评论(0) 推荐(0)

导航