c语言图形编程(一、字符屏幕)(C language graphic programming (1, character screen)).doc
文本预览下载声明
c语言图形编程(一、字符屏幕)(C language graphic programming (1, character screen))
Screen operation function
1. clrscr () clear character window function
2. window () character window function
3. gotoxy () cursor location function
Clreol (4.) at the end of the cursor function character
5. insline () insert empty line function
6. delline () deletes a row of functions
7. gettext () literal function
8. puttext () copy text function
9. movetext () moving literal function
Two, character attribute function
10. textmode () text pattern function
11. highvideo () high luminosity function
12. lowvideo () low luminosity function
13. normvideo (void);
14. textcolor () text color function
15. textattr () text attribute function
16.textbackground () text background function
Three. Screen display state function
X coordinate function at 17. wherex () cursor
Y coordinate function at 18. wherey () cursor
19. gettextinfo () to obtain text window information function
The character screen and graphics function are provided in Borland C++. The core of the character screen is the window (Window), which is the active part of the screen, and the characters are output or displayed in the active window. The window is the entire screen by default. The window can specify its size as required. Similarly, the operation of graphical functions is also provided (Viewport). That is to say function graphics operations are carried out in the viewport. Graphical viewport and character window has the same characteristics, the user can define the viewport different size on the screen, if you do not define the viewport size, it is the entire screen.
The window is a concept under the character screen, and only characters can be displayed in the window, when the smallest unit the user can access is a character. The viewport is in the state under the concept of graphic screen, text and graphics can be displayed in the viewport, the user can access the smallest unit is a pixel (the term used to refer to the original pixel
显示全部