Results 1 to 3 of 3

Thread: Help with two questions please.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    Porsgrunn,NORWAY
    Posts
    30

    Help with two questions please.

    BITBLT:
    Copy image1 to form.
    I have tried tutorials but I it wont copy.

    LINE:
    Draw Grid on form.
    Sometimes the grid wont fit right, try different bricksx and bricksy
    Why?? please help me get the grid to fit at all times.

    dim x,y as integer
    dim heightarea as integer
    dim bricksx,bricksy as integer
    dim brickwidth,brickheight as integer

    heightarea=int((form1.scaleheight/4)*3)
    'bricks won't fill whole screen. Stops at 3/4 of scaleheight.

    bricksx=25 'number of bricks at x-axis
    bricksy=23 ' y-axis
    brickwidth=form1.scalewitdh/bricksx
    brickheight=heightarea/bricksx

    'line going right
    for x=0 to bricksy
    form1.line(0,x*brickheight,)-(form1.scalewidth,x*brickheight),vbwhite
    next x

    'line going down
    for y=0 to bricksx
    form1.line(y*brickwidth,0)-(y*brickwidth,heightarea),vbwhite
    next y

  2. #2
    Hyperactive Member Ambivalentiowa's Avatar
    Join Date
    Apr 2002
    Location
    Coming soon to a store near you!
    Posts
    375
    A1: Copy the picture, then create a picture frame and paste it in that.

    A2: There is a snap-to-grid property you can set to yes.
    -Show me on the doll where the music touched you.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What type of grid are you using?

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