首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

GDI 求教绘图方法,多谢!

2012-03-20 
GDI 求教绘图方法,谢谢!!!GDI 求教绘图方法,谢谢!!!我想实现下面的绘图,求教该用何方法,谢谢!!!(效果如图:

GDI 求教绘图方法,谢谢!!!
GDI 求教绘图方法,谢谢!!!
我想实现下面的绘图,求教该用何方法,谢谢!!!(效果如图:http://hi.csdn.net/attachment/201112/28/50418_1325074587Xs7s.jpg)
根据条件填充区域。
FLOATRGN(PRICE,WIDTH,COND1,COLOR1,COND2,COLOR2)以PRICE为基础填充宽度为WIDTH像素的区域,WIDTH为负则向下填充,当COND1条件满足时,用COLOR1颜色,当COND2条件满足时,用COLOR2颜色,否则不填充

如:FLOATRGN(PRICE,WIDTH,PRICE>WIDTH,vbred,PRICE<WIDTH,vbgreen),

2011/11/8PRICE-2.391WIDTH-1.491
2011/11/9PRICE13.188WIDTH8.286
2011/11/10PRICE-26.065WIDTH-15.082
2011/11/11PRICE-6.604WIDTH-4.538
2011/11/14PRICE-1.056WIDTH-0.725
2011/11/15PRICE14.777WIDTH11.13
2011/11/16PRICE-43.128WIDTH-24.446
2011/11/17PRICE-57.714WIDTH-33.657
2011/11/18PRICE-41.833WIDTH-26.332
2011/11/21PRICE-92.626WIDTH-62.391
2011/11/22PRICE-9.312WIDTH-6.131
2011/11/23PRICE-26.097WIDTH-12.892
2011/11/24PRICE9.113WIDTH4.841
2011/11/25PRICE-1.933WIDTH-1.023
2011/11/28PRICE-28.672WIDTH-15.616
2011/11/29PRICE11.989WIDTH7.341
2011/11/30PRICE-22.435WIDTH-11.983
2011/12/1 PRICE23.787WIDTH14.642
2011/12/2PRICE14.368WIDTH10.98
2011/12/5PRICE1.667WIDTH1.058
2011/12/6PRICE-50.043WIDTH-33.459
2011/12/7PRICE12.491WIDTH8.4
2011/12/8PRICE-32.089WIDTH-17.801
2011/12/9PRICE-30.828WIDTH-22.435
2011/12/12PRICE-5.047WIDTH-3.882
2011/12/13PRICE-12.985WIDTH-8.645
2011/12/14PRICE10.715WIDTH8.158
2011/12/15PRICE-22.565WIDTH-14.349
2011/12/16PRICE14.564WIDTH9.337
2011/12/19PRICE-8.334WIDTH-4.816
2011/12/20PRICE22.607WIDTH15.579
2011/12/21PRICE-11.716WIDTH-11.508
2011/12/22PRICE-51.195WIDTH-40.578
2011/12/23PRICE-12.907WIDTH-8.01


[解决办法]
分解成一条条的竖线去画

热点排行