Results 1 to 6 of 6

Thread: Faster lines

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Red face

    I am ploting a graph using a picture1.line is there a quicker line drawing method than this?


  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Use the API (LineTo)

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    This explains how to use LineTo: http://209.207.250.135/ref/l/lineto.html

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Arrow User mode

    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

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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)
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301
    Cheers Kedaman, works a treat

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width