完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我正忙于图形LCD显示器,我使用的是PIC16F1789和12864b的液晶显示器,在并行模式下。有人知道什么是最有效的画线方法吗?IDENT WANDTO使用除法,不需要更多像素,那么需要,也许有人给我一些建议?我想我不会得到1分左右,所以我张贴。谢谢提前,圣诞快乐!
以上来自于百度翻译 以下为原文 Hi, i am busy with a graphical LCD display, i am using a PIC16F1789 and a 12864b LCD in parallel mode. Does anyone know what is the most efficient way to draw a line ?, I dont wanto use divide, and dont wanto paint more pixels then is needed, maybe someone has some advice for me ? I think i dont get around 1 divide, so i am posting here. thanks in advance, Merry Christmas |
|
相关推荐
6个回答
|
|
|
|
|
|
再次投票给Bresenham。它被认为是最有效的方法,用任意的角度画直线,使用互联网数学。
以上来自于百度翻译 以下为原文 Another vote for Bresenham. It is noted as the most efficient way to draw a straight line , at any angle,using internet math |
|
|
|
当然,如果你事先知道直线是垂直的、水平的还是倾斜的,就比较容易了。
以上来自于百度翻译 以下为原文 Of course, it's easier if you know beforehandhand if the line is vertical, horizontal, or sloped. Was not mentioned in the first post. |
|
|
|
是的,我想补充一点:实际上,我认为(希望)Bresenham的链接会考虑到这一点……但是,最终,对于低端CPU来说,这一点更重要。
以上来自于百度翻译 以下为原文 Yeah, I wanted to add about that: I actually think (hope) that links for Bresenham take that into account... Though, in the end, it's more important for low-end CPUs, I'd say. |
|
|
|
我让它工作了,再次感谢,现在我必须找出圆圈。我编写了处理所有八进制数的代码,键入了8次相同的代码,而不是使用moreCPU来处理较小的代码。我可以很容易地制作较小的函数来处理两个八进制数,这取决于我要做什么,我仍然不知道,我还要买。一个TFT,这样我可以有动画,这些12864B液晶显示器显示像素非常慢,一旦我有,我试着做一个范围。
以上来自于百度翻译 以下为原文 I have it working, thanks again, now i have to figure out the circles. I made the code to handle all octants, typing 8 times the same instead of using more CPU for smaller code. I can easy make smaller functions to handle 2 octants, depends on what i going to make, i still dont know yet, i going to buy a TFT so i can have animations, these 12864B LCD displays show the pixels very slow, once i have that i try make a scope. |
|
|
|
是的,我没有让中点圆开始工作,很糟糕。现在我有一个关于线条的问题:你怎样使它们更厚?对于Windows,你通常可以画一个可调像素宽的线,或者是另一个算法?提前感谢
以上来自于百度翻译 以下为原文 Yes, i did not get the midpoint circle working, to bad. Now i have a question about the lines : How would you make them thicker ? For windows you can normally draw a line with adjustable pixels wide, or is that another algorithm ? thanks in advance |
|
|
|
只有小组成员才能发言,加入小组>>
5323 浏览 9 评论
2076 浏览 8 评论
1982 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3254 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2293 浏览 5 评论
835浏览 1评论
733浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
674浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
729浏览 0评论
622浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-4 08:20 , Processed in 1.084253 second(s), Total 86, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号