Home > Software engineering >  Using MFC to achieve human posture display
Using MFC to achieve human posture display

Time:10-27

Based on MFC dialog box procedure, by reading a series of data in a text file to realize human movement posture, mainly is the following action, walk straight, upstairs, downstairs, jump and run, realization process is as follows: read 1 shows walking posture, read 2 show upstairs, read 3 shows downstairs, such, every movement around 1 s interval, excuse me how to do it, because the time is limited, I ability is limited, could you tell me what kind of method is easy to implement?

CodePudding user response:

Can use timer SetTimer, read the data stored in a data structure, the OnTimer modified index, and then call InvalidateRect forced to refresh, OnPaint/OnDarw draw the corresponding graph () function

CodePudding user response:

The body posture, please choose what method is good, mainly for movement continuity is better, and can do several attitude dynamic figure, and then read a data call the corresponding dynamic figure, according to this method on??

CodePudding user response:

Each posture should be a corresponding static image, an action may be composed of a set of static image,

CodePudding user response:

An action corresponds to a set of static images, so have to two timer?
  • Related