Results 1 to 2 of 2

Thread: Graphics Function Arguments?!

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Vancouver BC
    Posts
    4
    I want to write a function but I need help defining the function arguments.

    I know that sounds easy but read on!

    In particular, I want the arguments to be like the graphics functions arguments. For instance:

    picturebox1.line (x1,y1)-(x2,y2),colorref&

    How the heck do you program (x1,y1)-(x2,y2) in a function declaration.

    Here's what I'm doing...

    I want to create a WMF object that acts like a picturebox or printer object. That way, I can declare a generic object and use latebinding to display a graphic, or print a graphic, or SAVE a graphic in WMF format.

    So I need some way to do the following:

    dim wmfob as new wmfobject

    wmfob.line (x1,y1)-(x2,y2)

    I can create most of the object but the line, circle and move methods use this odd syntax.

    TIA.
    "I have a plan so cunning you could pin a tail on it and call it a weasel!" - Edmund Blackadder

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    I think that isn't possible. (I mean, it's only possible with an odd syntax)

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