我需要帮助来尝试绘制在笛卡尔平面上绘制的线 [英] I need help trying to draw lines I need to graph on the Cartesian plane

查看:81
本文介绍了我需要帮助来尝试绘制在笛卡尔平面上绘制的线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的主题说明了一切.我需要找到一种方法来使形状的原点(0,0)成为的中心,我想针对它运行斜率截距问题也许有些控制我仍然没有遇到过,但我对VB还是很陌生

I guess my subject says it all. I need to find a way to make the origin (0,0) of the form the center of the for I want to run slope intercept problems against it Maybe there is some control I still have not run across I am fairly new to VB and brand new to drying to plot lines and things.

推荐答案

位于窗体中心的中心位于ClientRectangle.Width/2ClientRectangle.Height/2.渲染(绘制)是采用OnPaint形式的重写方法完成的,事件自变量参数的Graphics对象应用于绘制;使用System.Drawing.Graphics.DrawLine方法.这就是您开始的全部.

请注意,没有人应该为您完成工作,但是您始终可以得到一些合理的帮助.因此,请现在就编写和调试代码,就上述主题咨询Microsoft帮助.

边坡截距问题来自基础数学.原点的问题不存在(我告诉过您中心在哪里,您所需要的全部),因为您熟悉基础数学.如果不是,您在错误的论坛中提出了您的问题.

—SA
Тhe center of your Form center is at ClientRectangle.Width/2, ClientRectangle.Height/2. The rendering (drawing) is done in the overridden method of the form OnPaint, the event argument parameter''s Graphics object should be for drawing; use System.Drawing.Graphics.DrawLine methods. That''s all you need to start.

Please be advised that nobody is supposed to do your work for you, but you can always get some reasonable help. So, please write and debug your code now, consulting Microsoft help on the topics I mentioned.

Slope intercept problem is from elementary mathematics; the problem with the origin does not exist (I told you where the center is, that all you need), it you are familiar with elementary mathematics. If not — you asked your question in wrong forum.

—SA


这篇关于我需要帮助来尝试绘制在笛卡尔平面上绘制的线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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