📄 jpegencoder.cpp
字号:
#include <iostream>
#include "jenc.h"
using namespace std;
int main(int argc, char* argv[])
{
//if (argc <= 1)
{
// cout << "please input bmp filename." << endl;
//return 0;
}
char inputImg[]="E:\\imgVC.bmp";
string fileName = string(inputImg);
string outFile = fileName.substr(0,fileName.find_last_of('.'));
outFile = outFile + ".jpg";
JEnc enc;
enc.Invoke(fileName, outFile,1000);
cout << outFile << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -