I am ploting a graph using a picture1.line is there a quicker line drawing method than this?
Printable View
I am ploting a graph using a picture1.line is there a quicker line drawing method than this?
Use the API (LineTo) :)
This explains how to use LineTo: http://209.207.250.135/ref/l/lineto.html
Thanks chaps, the API line is much faster, however is does`nt seem to work in user mode (scale mode) on my picture box. Is there anyway to fix this (without having to implement my own version of user mode)
Cheers
Nope, Win API goes with pixels on DC so you have to do it manually not to hard.
Code:pixelX = ScaleX(userX, vbUser, vbPixels)
pixelY = ScaleY(userY, vbUser, vbPixels)
Cheers Kedaman, works a treat