beziercurve.h

来自「Windows 图形编程 书籍」· C头文件 代码 · 共 39 行

H
39
字号
#pragma once
//-----------------------------------------------------------------------------------//
//              Windows Graphics Programming: Win32 GDI and DirectDraw               //
//                             ISBN  0-13-086985-6                                   //
//                                                                                   //
//  Written            by  Yuan, Feng                             www.fengyuan.com   //
//  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
//  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
//                                                                                   //
//  FileName   : beziercurve.h					                                     //
//  Description: Arc/Bezier curve drawing routines                                   //
//  Version    : 1.00.000, May 31, 2000                                              //
//-----------------------------------------------------------------------------------//


void Label(HDC hDC, int x, int y, const TCHAR * mess);
void Label(HDC hDC, POINT p[], int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);

void Dot(HDC hDC, int x, int y);

void P(POINT & rslt, POINT & p1, POINT p2, double t);

void Line(HDC hDC, POINT & p1, POINT & p2);
void Line(HDC hDC, int x0, int y0, int x1, int y1);
void Line(HDC hDC, int x0, int y0, int x1, int y1, HPEN hPen);

BOOL AngleArcTo(HDC hDC, int X, int Y, DWORD dwRadius, FLOAT eStartAngle, FLOAT eSweepAngle);

void Bezier(HDC hDC, double x1, double y1, double x2, double y2, 
			         double x3, double y3, double x4, double y4);

double P(double t, double p1, double p2, double p3, double p4);
double Error(double m, double & et);

BOOL EllipseToBezier(HDC hDC, int left, int top, int right, int bottom);

BOOL AngleArcToBezier(HDC hDC, int x0, int y0, int rx, int ry, 
					  double startangle, double sweepangle, double * err=NULL);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?