PDA

Click to See Complete Forum and Search --> : Faster lines


Rick H
Sep 25th, 2000, 10:56 AM
I am ploting a graph using a picture1.line is there a quicker line drawing method than this?

Fox
Sep 25th, 2000, 01:04 PM
Use the API (LineTo) :)

oetje
Sep 25th, 2000, 02:45 PM
This explains how to use LineTo: http://209.207.250.135/ref/l/lineto.html

Rick H
Sep 26th, 2000, 04:54 AM
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

kedaman
Sep 26th, 2000, 05:24 AM
Nope, Win API goes with pixels on DC so you have to do it manually not to hard.

pixelX = ScaleX(userX, vbUser, vbPixels)
pixelY = ScaleY(userY, vbUser, vbPixels)

Rick H
Sep 26th, 2000, 09:21 AM
Cheers Kedaman, works a treat