创建动态循环以连接GDI +中不同颜色的线段(在gdi +中绘制线) [英] creating a dynamic loop to join line segments of diffrent colours in GDI+ (drawing lines in gdi+)

查看:71
本文介绍了创建动态循环以连接GDI +中不同颜色的线段(在gdi +中绘制线)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个动态循环,以便能够绘制具有许多段的不同颜色的线条,以在已经创建并保存在我的桌面硬盘上的位图图像上展示用户/驾驶员的交通路线.根据工作站ID的含义(来自数据库"HEIDI SQL",我需要知道我应该调用哪些方法以及应该使用的类来创建此动态循环",因为在不同的时间间隔内该用户将是不同的用户)我的地图(位图图像​​)上会有许多不同的线段,请尽可能具体,我还是非常新的gdi +和c#,基本上我需要使用控制台应用程序在我的位图图像上绘制不同颜色的不同线段的线,

解决方案

通常,您使用OnPaint或control_Paint方法进行绘制,然后@jhetal建议使用DrawLine方法绘制各个线段.


您是否与要求的人相同?在LOOP(用于while语句)内进行C#openGL绘制 [ ^ ],我之前回答过?

I need to create a dynamic loop so that i can be able to draw lines of different colors with many segments showcasing the users/drivers traffic routes on a bitmap image which is already created and saved on my desktop hdd.the diffrent colors will have their meaning according to the station ID(from Database "HEIDI SQL",i need to know what methods i should call and class i should use,to create this "dYNAMIC LOOP" because the would be different user at different time intervals hence there are going to be many diffrent line segments on my map(bitmap image)please be as specific as possible i am still very new gdi+ and c# basically i need to draw lines of different segments with different colors on my bitmap image using console application,thanks in advance.

解决方案

Generally you use the OnPaint or control_Paint methods to do your drawing. Then as @jhetal has suggested use the DrawLine method to draw the individual segments.


Are you the same person as asked C# openGL draw within a LOOP (for, while statement)[^], which I answered earlier?


这篇关于创建动态循环以连接GDI +中不同颜色的线段(在gdi +中绘制线)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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