Getting path count
-
Hi
BeginPath(hdc) Ellipse( hdc,0,0,200,200 ); EndPath(hdc); FlattenPath( hdc); LPPOINT pt; LPBYTE byt; int nCnt= 0; nCnt = GetPath(hdc, (LPPOINT)NULL,(LPBYTE)NULL,0); if( nCnt != 0 ) { pt = new POINT[nCnt]; byt =new BYTE[nCnt]; }
Is this code produce correct path count (nCnt) in the given ellipse? -
Hi
BeginPath(hdc) Ellipse( hdc,0,0,200,200 ); EndPath(hdc); FlattenPath( hdc); LPPOINT pt; LPBYTE byt; int nCnt= 0; nCnt = GetPath(hdc, (LPPOINT)NULL,(LPBYTE)NULL,0); if( nCnt != 0 ) { pt = new POINT[nCnt]; byt =new BYTE[nCnt]; }
Is this code produce correct path count (nCnt) in the given ellipse?Well, as far as i can see, according to the documentation[^],
nCnt
should give you the number of points the path consists of.> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <