-
Oct 7th, 2023, 12:04 PM
#1
VB6 BezierLines via cGDIPlusCache-Helper
A somewhat less "user-code" requiring solution to a problem, which originally came up here:
https://www.vbforums.com/showthread....er-(Math-Help)
There's 3 Classes in this Project, which make it a bit easier, to formulate the "User-Code in Form1":
- cPoint
- cLineCalc
- cGDIPlusCache
The latter one (cGDIPlusCache) is a relatively well-tested GDIPlus-Class-encapsulation,
which takes the responsibility of "GDIPlus-Handle-freeing" upon itself.
It was primarily written, as an Image-Resource-Loader/Caching-instance -
later enhanced, to also support "the most common Vector-Graphics-primitives" (including Transforms and Context-Save/Restore).
A larger summary of what cGDIPlusCache can do, is demonstrated here:
https://www.vbforums.com/showthread....-cls-revisited
Back to the Demo at hand - the cGDIPlusCache-Class included here is the "most recent one"
(have just enhanced it about Bezier-Curve-support, to make use of it in this example)...
Here is a ScreenShot, what this little Demo will produce
And here's the Zip for the Demo:
BezierGDIPlus.zip
Have fun,
Olaf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|