microsoftxiao

记忆 流逝

导航

2006年10月4日 #

正弦函数GDIPlus

摘要: float rota = 0.0f;float zrota = 1.0f; int c1 = 100;int c2 = 200;int tmp = 0;int step = -200; int Render(){ if(step > 800){ step = -200; InvalidateRect(hWnd,&rect,true); } Graphics grap... 阅读全文

posted @ 2006-10-04 20:03 龙巢NET刀 阅读(340) 评论(0) 推荐(0)

反比例函数图象

摘要: float rota = 0.0f;float zrota = 1.0f; int Render(){ if(rota > 10.0f || rota < -60.0f){ zrota = -zrota; } Graphics graphics(hdc); GraphicsPath path; Pen pen(Color(255,0,255,0),1); SolidBrush s... 阅读全文

posted @ 2006-10-04 15:59 龙巢NET刀 阅读(1043) 评论(0) 推荐(0)

变化的曲线2

摘要: const cpxn = 700;const cpyn = 100;int zpyn = 30;int zpxn = 30; int cpx = cpxn;int cpy = cpyn;bool bs = false; int Render(){ if(i>100){ i = 0; InvalidateRect(hWnd,&rect,true); } if(cpx 700... 阅读全文

posted @ 2006-10-04 12:07 龙巢NET刀 阅读(3726) 评论(0) 推荐(0)

GDIPlus抛物线渐变

摘要: const cpxn = -400;int cpx = cpxn; int Render(){ if(i>100){ i = 0; InvalidateRect(hWnd,&rect,true); } if(cpx > 600){ cpx = cpxn; } //InvalidateRect(hWnd,&rect,true); Graphics graphics(... 阅读全文

posted @ 2006-10-04 10:41 龙巢NET刀 阅读(6548) 评论(7) 推荐(0)

GDIPlus进度条

摘要: 包含gdiplus头#include using namespace Gdiplus;引用lib #pragma comment(lib,"gdiplus.lib")为了使用GDI要在 WinMain里 初始化设置 GDIint WINAPI WinMain(){ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplu... 阅读全文

posted @ 2006-10-04 09:45 龙巢NET刀 阅读(358) 评论(0) 推荐(0)