Results 1 to 3 of 3

Thread: Lines on picture objects after loading bitmap

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Houston
    Posts
    48

    Cool

    Can't seem to draw a line on a picture object after I load a bitmap into ther picture. What are the switch settings necessary for seeing a line on top of a loaded bitmap?

    -lp

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    Just use the Line method of the Picturebox, i.e.
    Code:
    Private Sub Command1_Click()
        Picture1 = LoadPicture("C:\SomePic.bmp")
        Picture1.Line (0, 0)-(Picture1.Width, Picture1.Height)
    End Sub

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    You use the api to draw the line right?

    Maybe try setting the Picture1.Autoredraw = True and after drawing the line do Picture1.Refresh
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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