Results 1 to 31 of 31

Thread: Need alot of awnsers. Bitblt, Control Arrays...

Threaded View

  1. #29
    Lively Member
    Join Date
    May 2010
    Posts
    103

    Re: [officaly done with vb.net]0Need alot of awnsers. Bitblt, Control Arrays...

    Ok, I just looked at your code..

    Your Module1.vb is just all wrong..
    vb Code:
    1. Module Module1
    2.     Public beep As Integer 'pic for bee
    3.     Public maskp As Integer 'pic for mask
    4.     Public beepic(2) As Object
    5.     Public maskpic(2) As Object
    6.     Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Integer) As Integer
    7.     Public KeyArray(300) As Boolean
    8.     Public playerleft As Integer
    9.     Public playertop As Integer
    10.     Public vbSrcAnd As VariantType = &H8800C6
    11.     Public vbSrcCopy As VariantType = &HCC0020
    12.     Public vbSrcPaint As VariantType = &HEE0086
    13.         beepic(1).Image = Form2.Image1.Image
    14.         beepic(2).Image = Form2.Image2.Image
    15.         maskpic(1).Image = Form2.Imagemask1.Image
    16.         maskpic(2).Image = Form2.Imagemask2.Image
    17.         beepic(1).Size = Form2.Image1.Size
    18.         beepic(2).Size = Form2.Image1.Size
    19.         maskpic(1).Size = Form2.Image1.Size
    20.         maskpic(2).Size = Form2.Image1.Size
    21. End Module

    ... as far as I know, you can't assign properties to arrays like a declaration. You need to put that stuff (lines 13 to 20) in a sub or function. Call it from a Form_Load event or something..

    Also, from the looks of your Form2 images, you are trying to use two images (main image and mask image) to create a transparent image. You don't have to do that in VB.Net. You can just use a .png image with transparency/opacity set in an image editor. There are other ways too..
    Last edited by MotoX646; Jun 17th, 2010 at 11:48 AM.

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