Results 1 to 4 of 4

Thread: form transition and BitBlt problem

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    form transition and BitBlt problem

    hi all.
    I'm using BitBlt to copy a piece of Form2 to a picture box control in form2 in the Form_Load event.

    The problem is that the program begins with Form1 and no matter what I do, the Bitblt keeps copying its source from those coordinates on Form1

    Form2 is not yet visible, but I've even done form2.show and form1.visible = false to make it use form2, also I used as Source DC
    SourceDC = GetWindowDC(Form2.hwnd)

    What more can I do?

    I am using vbSrcCopy. Is that the problem?

    ANybody?
    thanks
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Heh that's weird, can you post the code here so I have a look at it?
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    never mind. I've moved past that now.

    But this is what I'm stuck on. I used BitBlt to get the image onto the Picture box. Now I want to save the image that is now in the picturebox as a bitmap.

    When I use SavePicture on the .picture , it saves the picture that was originally in picture1, not what I BitBlt to the box. So how can I either:

    Save what is now painted into picture1 as a bitmap
    or
    make this bitblt picture in the picturebox become the .picture for this box.

    either?

    Thanks
    Gary
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  4. #4

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    Never mind on that too.

    Picture1.Image, not Picture1.Picture

    Okay, let me get some more work done before I post a problem again
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

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