摘要: 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... 阅读全文
posted @ 2012-12-13 02:22 fff8965 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 新建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 阅读全文
posted @ 2012-12-13 02:04 fff8965 阅读(469) 评论(0) 推荐(2) 编辑