摘要:
Graphics类提供很多的drawing方法,如下表DrawLine MethodsDrawRectangle MethodsDrawEllipse MethodsDrawArc MethodsGraphics::DrawPathDrawCurve MethodsDrawBezier Methods这些方法都需要一个Pen对象做为第一个参数。用Pen画线和矩形 Using a Pen to Draw Lines and Rectangles设置Pen的宽度和对齐方式 Setting Pen Width and Alignment画带头的线 Drawing... 阅读全文
摘要:
新建win32项目,拷贝下面代码到Main函数所在cpp// gdiTest.cpp : Defines the entry point for the application.//#include "stdafx.h"#include "gdiTest.h"#include <objidl.h>#include <GdiPlus.h>using namespace Gdiplus;#pragma comment (lib,"Gdiplus.lib")#define MAX_LOADSTRING 100VOID 阅读全文