英语翻译a paper about computer haraware not less than 1500 words

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/24 23:45:54

英语翻译
a paper about computer haraware not less than 1500 words

?

动画设计中消除图像闪烁的一种方法是使用多页动画。多页动画是通过使用页切换技术实现的。页切换改变显示页以绘制出给定动画序列的相邻帧。由于图像通常绘制在不同的页上(不是当前可见页),用户不会看到图像被绘制或擦除。所以,这种技术能产生高质量的动画而没有图像闪烁。进行页切换的详细步骤如下。
1.选择一种至少有两个可用显示页的视频模式(示例中为EGA640×200,16色4页)。
2.使用-...

全部展开

动画设计中消除图像闪烁的一种方法是使用多页动画。多页动画是通过使用页切换技术实现的。页切换改变显示页以绘制出给定动画序列的相邻帧。由于图像通常绘制在不同的页上(不是当前可见页),用户不会看到图像被绘制或擦除。所以,这种技术能产生高质量的动画而没有图像闪烁。进行页切换的详细步骤如下。
1.选择一种至少有两个可用显示页的视频模式(示例中为EGA640×200,16色4页)。
2.使用-setvideomode()函数获取选择的视频模式。在当前显示页(0页)上绘制出序列中的第一帧。
3.在需要绘制出序列中下一帧时,使用-setactivepage()函数设置激活页为备用显示项,仅仅改变激活页(不是可见页)。
4.绘制出下一帧。此帧将被绘制在备用显示页(页1)上,而当前页(页0)继续被显示。在以后重复这一步时在绘制新的一帧前擦除掉已有的帧。
5.绘制出新的一帧以后,使用-setvisualpage()函数将可见页设置为备用页。此时,备用页成为当前页。
6.重复步骤3到5直到完成了动画序列为止。
以下程序(采用Visual C++)演示了实际的多页动画,例子中的动画序列读者自行设计。
#include
#include #include #define LAST-FRAME 4/* Total frames in the sequence. */
#define DRAW 1 /* Code for the draw operation. */
#define DELTA-X 10 /* Pixels moved per frame change. */
#define HALF-SECOND 500 /* 500 msec delay between frames
. */
#define MAX-X 600 /* Max X position before termination.
*/
#define SETUP-DISPLAY \par
\par -setvideomode(-HRES16COLOR); \par
#define EXIT-TO-DOS \par
\par -setvideomode (-DEFAULTMODE); \par
/****页切换和绘制动画序列****/
#define PAGE-FLIP(v) \par
\par if(v==0) v=1; \par
else v=0; \par
-setactivepage(v); \par
-clearscreen(-GCLEARSCREEN); \par
-settextposition(1,16); \par
-outtext( \par "Example:
Multiple Page Animation"); \par
draw-frame(current-frame,px,py); \par
-setvisualpage(page); \par
create-delay(HALF-SECOND); \par
int px,py; /* Current character position. */
int page; /* Current page displayed. */
int current-frame; /* Current frame displayed. */
main()
SETUP-DISPLAY
cycle-frames();
EXIT-TO-DOS
cycle-frames()
current-frame=0;
px=0;
py=85;
page=0;
while(px<=MAX-X)
current-frame++;
if (current-frame>LAST-FRAME)
current-frame=2;
PAGE-FLIP(page)
px=px+DELTA-X;
current-frame=1;
PAGE-FLIP(page)
draw-frame(frame,x,y)
int frame,x,y;
switch(frame)
case 1:
frame-1(DRAW,x,y);
break;
case 2:
frame-2(DRAW,x,y);
break;
case 3:
frame-3(DRAW,x,y);
break;
case 4:
frame-4(DRAW,x,y);
break;
create-delay(td)
/**同Borland C++中的delay(td)函数**/
int td;
time-t ts1,ts2;
ts2=ts1=clock();
while(ts1+td>ts2)
ts2=clock();
73TTUPMOP1
Animation design to eliminate the flickering image is a way to the use of animated pages. Animation pages through the use of technology to switch the page. Page switch to change the display page will be drawn to the animation sequence of adjacent frames. As the image is usually drawn in a different page (not the current page can be seen), the user will not see that image was erased or draw. Therefore, this technology can produce high-quality animation and images do not flicker. Switch page for detailed steps are as follows.
1. Select a show that can be used at least two-page video mode (for example EGA640 × 200,16 color 4).
2. Use-setvideomode () function to obtain the video mode of choice. In the current show page (0), to map out the sequence in the first frame.
3. The need to map out the sequence in the next frame, the use of-setactivepage () function to activate page set up for back-up show, just change the activation page (not visible).
4. Mapping out the next frame. This frame will be drawn in the back-up display page (Page 1), and the current page (page 0) continue to be displayed. Repeat this step at a later date when the new map in a pre-cleaning to remove the existing frame.
5. Mapping out a new future, the use of-setvisualpage () function will be seen as a back-page settings page. At this point, has become the back-page page.
6. Repeat steps 3-5 until the completion of the animated series so far.
The following procedures (in Visual C + +) demonstration of the actual pages of the animation, examples of animation sequences designed by readers.
# include
# include # include # define LAST-FRAME 4 / * Total frames in the sequence. * /
# define DRAW 1 / * Code for the draw operation. * /
# define DELTA-X 10 / * Pixels moved per frame change. * /
# define HALF-SECOND 500 / * 500 msec delay between frames
. * /
# define MAX-X 600 / * Max X position before termination.
* /
# define SETUP-DISPLAY \ par
\ par-setvideomode (-HRES16COLOR); \ par
# define EXIT-TO-DOS \ par
\ par-setvideomode (-DEFAULTMODE); \ par
/**** Page rendering and animation sequences switch ****/
# define PAGE-FLIP (v) \ par
\ par if (v == 0) v = 1; \ par
else v = 0; \ par
-setactivepage (v); \ par
-clearscreen (-GCLEARSCREEN); \ par
-settextposition (1,16); \ par
-outtext (\ par "Example:
Multiple Page Animation "); \ par
draw-frame (current-frame, px, py); \ par
-setvisualpage (page); \ par
create-delay (HALF-SECOND); \ par
int px, py; / * Current character position. * /
int page; / * Current page displayed. * /
int current-frame; / * Current frame displayed. * /
main ()
SETUP-DISPLAY
cycle-frames ();
EXIT-TO-DOS
cycle-frames ()
current-frame = 0;
px = 0;
py = 85;
page = 0;
while (px <= MAX-X)
current-frame + +;
if (current-frame> LAST-FRAME)
current-frame = 2;
PAGE-FLIP (page)
px = px + DELTA-X;
current-frame = 1;
PAGE-FLIP (page)
draw-frame (frame, x, y)
int frame, x, y;
switch (frame)
case 1:
frame-1 (DRAW, x, y);
break;
case 2:
frame-2 (DRAW, x, y);
break;
case 3:
frame-3 (DRAW, x, y);
break;
case 4:
frame-4 (DRAW, x, y);
break;
create-delay (td)
/ ** Borland C + + with the delay (td) function ** /
int td;
time-t ts1, ts2;
ts2 = ts1 = clock ();
while (ts1 + td> ts2)
ts2 = clock ();
73TTUPMOP1

收起

英语翻译a paper about computer haraware not less than 1500 words 英语翻译My deal with how to make .A.paper;paperB.papers;papersC.paper;papersD.papers;paper 英语翻译 a pad of lined paper About 90% of British people over 15 read a paper. a.paper. 英语翻译1.How much paper do you use every year?Maybe you can’t answer this question quickly.In 1900 the world’s use of paper was about one kilogram for each person in a year.Now some countries use as 50 kilograms of paper for each person in a 英语翻译I have a big paper due Monday Jack asked a lot of queations about having a paper route.翻译? 英语翻译$(co) 英语翻译$(co) 英语翻译$(co) 英语翻译co 英语翻译paper traffic jam Write a report about ways of saving paper如题,写一篇文章, 英语翻译Since the structures composed of beams are adopted as a clamped beam in this paper.At the same time the system is asymmetric about its foundation,which is excited by an off center harmonic force. 英语翻译The paper by Bekker et al in this issue,examines the use of an early requirements gathering technique,called KidReporter,in which children contribute to the design process by creating a newspaper about the activity that the product under 英语翻译I’m working on a term paper about the influence of television on recent United States presidential electons.这句话单词都很好懂,但是意思老是理不顺,特别是“television”在这里面的解释. 英语翻译Paper was first created about 2000 years ago,and has been made from silk,cotton,bamboo,and,since the 19th century,from wood.People learned to write words on paper to make a book.But in those days,books could only be produced one at a time