Home > Software engineering >  Let the alphablend function image fades
Let the alphablend function image fades

Time:10-29

I have a Zhang Yuantu in picture1
Then I want him to fade in show in the Form

First using alphablend function but then I found a problem
If the picture1 don't show on the screen alphablend function cannot be truncated

Is there any way to make the picture of the picture1 fade in appear on the Form and do not let the picture1 appears on the screen
Or don't alphablend function can also have other good method

CodePudding user response:

Well, I then looked at the problem that is picuture1 autoredraw
But I'm on the picture1 painting is painted with gdi autoredraw is set to true the would not be able to draw
Have what way?

CodePudding user response:

Finished with the picture. It is ok to refresh.

CodePudding user response:

AutoRedraw only support automatic refresh, using VB method for drawing use GDI drawing set AutoRedraw is unnecessary,

CodePudding user response:

AutoRedraw is set to True if GDI couldn't draw
AutoRedraw is set to False AlphaBlend function then wrong

I want to ask a saved as GDI drawing. BMP code that I have ways

CodePudding user response:

There is a GDI is drawing in the background of
Means good GDI drawing in the background and then save to file form

CodePudding user response:

Refer to this thread http://bbs.csdn.net/topics/90448917
Inside CaptureWindow () from the hWnd screenshots, can be changed from hDC screenshots,

CodePudding user response:

If "GDI is drawing in the background of", that you don't need to use a PictureBox, using API build in memory a HDC drawing not line?
  •  Tags:  
  • API
  • Related