Discussion at E.E, Could you participate in the help? 
Author Message
 Discussion at E.E, Could you participate in the help?

      From: luckie
      Status: Waiting for Answer  Points: 50
       Email A Friend
      There are quite a few rasterop constants in VB6, but I don't know
which one to use. I run into a problem
      that when I 'paintpicture' with an image control and that when this
control passes thru other controls,
      it starts to flicker and very seriously. I tried the vbMergePaint,
vbMergeCopy and vbpatinvert options,
      but neither overcomes this problem, any advice?
      Regards
      luckie

      Question History
      Comment
      From: TheRedGuy  Date: 06/06/2002 06:55AM PST
      More info, please!

      What do you mean by 'passes through other controls'? Are you allowing
users to drag an image control
      around the screen or something?

      Note, also, that whilst I may be able to help, I think this Q belongs
in the VB topic area...
      Comment
      From: luckie  Date: 06/06/2002 06:24PM PST
      for example, I create an image control,  the control moves from the
left side to the right side. And
      there is another image control in the middle of the screen, when the
first control overlaps with the
      second control, it starts to flicker... Thanks
      Jacky

      Comment
      From: TheRedGuy  Date: 06/07/2002 05:03PM PST
      Have you tried BitBlt instead of the PaintPicture method? Also, how
important is this type of behaviour?
      Are you writing a game, for instance? If you post some code I'll play
around with it for you with some
      API calls. Depends what youu are trying to achieve, though....

      btw, did you post to VB topic area, too?
      Comment
      From: luckie  Date: 06/07/2002 06:03PM PST
      Well, not many points left... :)

      Comment
      From: luckie  Date: 06/07/2002 09:36PM PST
      My background is a bitmap (bmp) and my image control is a transparent
gif (gif), What rasterops do I
      use? I want the image's back to be seen thru with the background...
      Thanks
      Jack

      Comment
      From: luckie  Date: 06/07/2002 09:36PM PST
      some code:

      Dim x123 As Long
      Dim y123 As Long

      Private Sub Form_Load()
         WindowState = 2
         x123 = 11640
         y123 = 5880
         Image1.Picture = LoadPicture("C:\images\vna7.gif")
         Image1.Stretch = True

         Timer1.Enabled = True
         Timer1.Interval = 10

      End Sub

      Private Sub Timer1_Timer()
        x123 = x123 + 10
        y123 = y123 + 10
        PaintPicture Image1, x123, y123, 1620, 1455, 10, 10, 1620, 1455,
vbSrcPaint
      End Sub

      Comment
      From: TheRedGuy  Date: 06/08/2002 10:21AM PST
      OK, let's make sure I understand the problem...

      I ran your code and you are not moving an Image control anywhere. You
are a painting a picture of the
      Image control directly onto the form at points X and Y. The image
control remains stationary but flickers
      whenever you paint a picture of it onto the form. That is what you
want to fix, correct?
      Comment
      From: luckie  Date: 06/09/2002 06:25PM PST
      But according to the code snippet, it should be moving at the
positions of x123,y123,and yes, i want
      to fix the flickering happened when the image object is moving across
the screen (and when two objects
      overlap each other)
      Regards
      Jacky
      Comment
      From: luckie  Date: 06/09/2002 06:32PM PST
      the control seems to be invisible at the designated positions...
      Thanks
      JAck
      Comment
      From: luckie  Date: 06/09/2002 06:37PM PST
      When I use vbSrcCopy, there is a patch of whiteness at the designated
positions. However, the image
      can't be seen with other ops.
      Thanks
      Jack

begin 666 email.gif

M#R >&4E '2HM+1LC*O/S\R'Y! $```\`+ `````>``L```1P\,E)WPDXZYWK


/)24G>0A:?(=!DH8/$0`[
`
end

begin 666 accept.gif

M,X*:M<;&QK._S>'AX;Z^OL[.SFN)J^[N[LS,S ``````````````````````
M`````````````````````````"'Y! $``!0`+ ````"Z`!8```7_("6.4FF>


M(E:-=(>5EI>8F9J:<HY5%(T!<92;I::GJ*EZ=YV3`!"C>PJSJG4*?K.TM82W
MI;F[>ZRP$ P/KZ1YOZJZLKW,P+B]F\K0=HL0``\/#(IZM,RYTN%XXQ/?SM3D
MTLG4Y[;HYO#ONN[QS_/BZ>SQ[_SX_>8`EBN'!T"Q;8F:^:-WB^'"AO7N`=SW


M2!$ITJ-EST[EM_2>4XK/=HYEJ0Z=3[=6OR(L&C/H59-T9])M.[6FP*: )YKU
M6Q'CTV!?#R"4>1A<.V7U%"?-9_DP3;MK8]8-:;5SS\X3LT)^<*" Y+#+K%:;



`
end



Fri, 26 Nov 2004 09:36:04 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Looking forward to participating

2. Still time to participate: Testing Computer Software (TCS2001) Conference

3. Still time to participate: Testing Computer Software (TCS2000) Conference

4. Still time to participate: Testing Computer Software (TCS2000) Conference

5. How can PublicNotCreateable objects participate in transactions?

6. Missing help in VS 6.0 EE Upgrade

7. HELP ME with VB 5.0 EE and ORACLE

8. HELP with VB 5.0 EE and ORACLE

9. Missing help in VS 6.0 EE Upgrade

10. VB4/EE: Need help printing a FORM

11. WinInet FTP Downloads... help / discussion

12. newbie: Discussion forum - some startup help?

 

 
Powered by phpBB® Forum Software