tuxiangprogramming

所属分类:2D图形编程
开发工具:C/C++
文件大小:83KB
下载次数:280
上传日期:2006-08-15 13:35:25
上 传 者管理员
说明:  用c语言写的图形动画程序,很逼真的,学习以下不错
(c language used to write graphic animation process, very realistic, following good learning)

文件列表:
图象编程\BMP2IMC.EXE (56303, 1994-02-15)
图象编程\DEMO.C (3108, 1994-02-20)
图象编程\DEMO.EXE (26042, 1994-02-20)
图象编程\EGAVGA.BGI (5363, 1988-08-29)
图象编程\IMCL.LIB (1536, 1994-02-18)
图象编程\IMCS.LIB (1536, 1994-02-18)
图象编程\LUNG1.IMC (2442, 1994-02-18)
图象编程\LUNG2.IMC (2282, 1994-02-18)
图象编程\LUNG3.IMC (4990, 1994-02-18)
图象编程\LUNG4.IMC (2222, 1994-02-18)
图象编程\LUNG5.IMC (1970, 1994-02-18)
图象编程\PANDA.IMC (13030, 1994-02-15)
图象编程\SANGO.BMP (57718, 1994-02-18)
图象编程\SHOWIMC.EXE (31542, 1994-02-19)
图象编程\WONG1.IMC (2674, 1994-02-18)
图象编程\WONG2.IMC (2794, 1994-02-18)
图象编程\WONG3.IMC (2082, 1994-02-15)
图象编程 (0, 2006-08-15)

This program is designed for putting some 'sophisticated' images in Turbo C. It is very difficult to draw some images in Turbo C just using its own provided functions like bar(), and i think no one will use such functions to complete a game or an assignment. So i develop the program BMP2IMC (IMC stands for IMage in C) to capture an area in BMP file and i also develop a function used by C named imc() to display such a IMC file in everywhere anytime you like. But of course, since Turbo C EGA/VGA just support 16 colors, we can just display 16 colors BMP and then 16 colors IMC file. But i think it is enough to complete some simple games and graphics assignments. (Actually it is desinged for graphics assignments, since i want to draw some icons and develop my own beautiful windows!) In my demo.c, i just use other program to capture some characters in BMP and then use Paintbrush to make some corrections to the BMP, then use the program BMP2IMC to convert the motion of the characters in IMC format and display them again. You're better to have a look of demo.c. Since some IMC files maybe too large to display(>***k), if in this case, you must program in large model. The library for large model is also included. Here are the lists and uses of the programs: BMP2IMC.EXE - capture a part in BMP and convert it in the format IMC. SHOWIMC.EXE - show the *.imc image IMCS.LIB - library file for small model IMCL.LIB - library file for large model DEMO.EXE - just a demo file for displaying the IMC files. DEMO.C - source code of DEMO.EXE *.IMC - IMC files. You can display them using SHOWIMC e.g. BMP2IMC sango.bmp SHOWIMC panda.imc tcc -ms demo.c imcs.lib (dont forget to include lib while compiling) To use the function imc(char*) provided in the library, you must fisrt declare the extern function imc(), then a same pointer type of imc() : extern void far* imc(char*); main() { .. .. .. void far* bitmap; .. .. .... .... bitmap=imc("panda.imc"); .... .... putimage(0,0,bitmap,COPY_PUT); .... .... farfree(bitmap); } You're better to look the demo.c as an example. P.S. If you have any comments and opinions, i'm very happy to receive your messages in BBS (named Leung Tail) and any e-mail : email : kwleung2@se.cuhk.hk Since this is the first program i write to BBS, i'm very eagar to get any opinions and share our experience in programming. Wait for your echo! Leung Ka Wai 2/94

近期下载者

相关文件


收藏者