Re: Smooth lines in Picturebox

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Mike Williams" <mike@xxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:eemdBKi7GHA.1012@xxxxxxxxxxxxxxxxxxxxxxx

But I'm still a little surprised by the fact that your Byte array
"mode 4" code is as fast or faster than the equivalent API
StretchBlt call.
Ok, the original MS-Implementation has to deal with all possible
Zoom-Factors - mine is specialized only for the "divide by 2 in
both directions"-case.

Mind you, perhaps I shouldn't be too surprised.
No, the VB-C-Compiler (C2.exe) is only 10%-15% behind its
pendant in MS-VC6 (full optimization-flags set in both cases).
I've found, that a good implemented, native compiled VB-Algo
has always good chances, to outperform the original WinAPI-
Implementation.

I once wrote some standard VB code when I had VB5 which
used Byte arrays to perform a "replace substrings with different
substrings" in some large text strings and when VB6 eventually
came out I was a little surprised to discover that my own VB5
code was as fast as and often faster than the new native VB6
Replace function.
Good example - and welcome in the "VB-Replace-Replacement-
community". ;-)
look at: http://www.xbeat.net/vbspeed/c_Replace.htm
(up to 17 times faster than the original implementation is to beat)

Olaf


.