Windows XP에서 지원하는 GDI+
Link : gdiplus.lib
사용하는 곳에 초기 선언
#include <gdiplus.h>
using namespace Gdiplus;
class GdiplusTest
{
GdiplusTest;
~GdiplusTest;
private:
ULONG_PTR m_gdiplusPTR;
}
GdiplusTest::GdiplusTest
{
GdiplusStartupInput gdipluse;
GdiplusStartup(&m_gdiplusPTR, &gdipluse, NULL);
}
GdiplusTest::~GdiplusTest
{
GdiplusShutdown(m_gdiplusPTR);
}
void GdiplusTest::Draw()
{
CDC *pDC;
pDC = GetDC();
RectF rectTemp;
Graphics graphics(pDC);
Pen pen(Color(255, 0, 0), 1);
graphics.SetPageUnit(UnitPixel);
graphics.DrawEllipse(&pen, rectTemp);
ReleaseDC(pDC);
}
댓글 없음:
댓글 쓰기