代码如下:
#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
#undef UNICODE
#undef _UNICODE
#include <graphics.h>
#include <conio.h>
#include<windows.h>
#include<time.h>
#include <unistd.h>
using namespace std;
int main() {
initgraph(800, 600);
IMAGE img;
loadimage(&img, ("素材\\背景.png"));
putimage(0, 0, &img);
static TCHAR t[256];
_stprintf_s(t, _T("学生登录"));
settextcolor(WHITE);
outtextxy(180, 142, t);
_getch();
return 0;
}
在输出后发现图片上输出的"学生登录"边缘是黑的,很不美观,请问有什么办法去除?