计算机图形学中的BGI [英] BGI in computer graphics

查看:183
本文介绍了计算机图形学中的BGI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

bgi错误图形未初始化('使用initgraph')

bgi error graphics not initialised ('use initgraph')

这是我遇到的错误.即使更改了BGI路径和提到的其他解决方案,我也无法克服!

This is the error I'm getting. Even after changing the BGI path and other solutions mentioned, I'm unable to overcome!

推荐答案

问题不在于您在错误的目录中查找,问题在于Borland图形界面要求您先调用initgraph() 您尝试实际绘制东西.您可能希望它看起来像这样:

The problem isn't that you are looking in the wrong directory, the problem is that the Borland Graphics Interface requires that you call initgraph() before you try to actually draw things. You would expect this to look something like this:

initgraph(&gd , &gm ,"C:\\TurboC\\BGI");

注释中的建议(即使用更现代的图形包)也是极好的建议.

The suggestion in the comments, i.e., use a more modern graphics package, is also excellent advice.

这篇关于计算机图形学中的BGI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆