Home > Back-end >  Use C implementation picture scroll effect
Use C implementation picture scroll effect

Time:04-15

As shown in figure:
1 piece of digital images, marked with x2, x3, x4, x5 four number, screen scrolling effect, can increase deceleration, namely the acceleration - uniform - reduction, the target is to specify the stop position (i.e. the screen center on behalf of the target location), for example, in "x4", then "x4" in the middle,

Could you tell me how to achieve the c + +, to ask you,

CodePudding user response:

This is not just a c + + can solve, you also need to the operating system and graphics apis, of course, if you can direct access to the display hardware, microcontroller programming model also can do it,

CodePudding user response:

The building Lord first browse the CSDN in this web page automatically recommend below each link, if you have any questions, left again in this post inquiry,

CodePudding user response:

This is rendering, what language has little to do with you, the problem how do prefer to put the figure output, have the related interface is a set to offset the render texture,

CodePudding user response:

Add that the project I used DirectX engine

CodePudding user response:

The
reference 4 floor cs113dn reply:
add that the project I used DirectX engine

Baidu search "DirectX image smooth scrolling"

CodePudding user response:

As if not found, do you have?

CodePudding user response:

As hearth that bai? Heel roller drawing about the effect of bai?
Finally always "close rivals" bai?

CodePudding user response:

The effect of the right, is like that

CodePudding user response:

Simple implementation, such as the effect is, the picture scroll down on, to accelerate the speed at a constant speed and stop to the first "evenly matched opponents,"
A frame by frame animation,
Then you have to realize the translation of the picture first,
Translation done speed only distance/time, automatic roll is regular translation images,
Here of course there is certainly not moving to the finish line to sleep, but sleep an appropriate minimum of time, and then control the moving to the finish line to cycle times,
It is almost done at a constant speed of single roll speed,
Simple effect is gradually improve the single rolling speed, maintain, and reduced,
Stop, at a constant speed can be slow - - down - stop parked in your position,

CodePudding user response:

Advanced a little will make the acceleration,
Actually easy, also can do simple point, such as from start to finish circular 100 times, 100 translation distance, the current speed is 1, uniform step is 1, is the cycle time is updated on a location and display images,
Acceleration is the acceleration is set to 1, for example, every step is more than the last one is OK, 1, 2, 3, 4, this way, the cycle time in position 1,2,4,7,11, according to the frame by frame animation looks like this is really accelerating gradually,

CodePudding user response:

Full version, in addition to make code control picture scroll, more groups to support the images, images need to have the effect of different speed motion blur, use need not set figure in different speed,
Even a simple point, like furnace, rolling up immediately in the GIF... What also need not tube, such as when to stop the GIF hides in really figure up the scroll,

CodePudding user response:

Now the first question is how can translation translation to want the location of the translation, and translation is if the removal of a screen image stitching?

CodePudding user response:

The simpler, more complex't

CodePudding user response:

DirectX used, display and refresh oneself study,
I baidu or some,
Pictures, you first determine how much a screen display most figure,
It is assumed that a total of 5, the screen shows three, most have a pool images, the images just removed the screen recycling to first, and then the number three need enough starting point from the outside came in and out of the pool, and then thrown into the animation events, generation can also be a custom order, so that shows the figure is randomly sort

CodePudding user response:

Most shows three,
  • Related