重绘位图 [英] Bitmap redrawing

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

问题描述

我实现了一个模拟时钟.我有一个位图,上面显示着秒针,分针和时针.但是无论何时秒针移动,这部分背景都在这里面临着一个问题.图像熄灭.我试图在秒针移动时重绘背景图像,但这无济于事.有人可以提供解决此问题的方法吗?

在此先感谢.

I have implemented an analog clock.I have a bitmap on top of which i am displaying the second hand,minute and the hour hand.But i am facing a problem here,whenever the second hand moves ,that part of the background image goes off.I tried to repaint the background image whenever the second hand moves but that does not help.Can anyone please provide a solution to this problem?

Thanks in advance.

推荐答案

写道:​​

我试图重新绘制背景图像每当秒针移动但无济于事

I tried to repaint the background image whenever the second hand moves but that does not help



到底是什么意思?如果您重新绘制整个背景(然后将秒针绘制到新位置),则可能会闪烁,但绝对可以.
:)



What does it mean, exactly? If you repaint the whole background (and then draw the second hand at new position) it may flicker, but it must definitely work.
:)


这篇关于重绘位图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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