IKImageView重绘图像更改问题 [英] IKImageView redraw problem on image change

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

问题描述

我的窗口中有一个大的IKImageView。用户单击某些内容时,图像会发生变化。发生更改时,IKImageView首先绘制背景色,然后在其顶部绘制图像,这看起来非常糟糕。

当窗口加载一秒钟直到图像加载时,它还包含垃圾-这是否相关? / p>

解决方案

问题已解决-停止使用IKImageView,并且再也不会打扰它了,因为它的文献记载不充分且存在错误。回到值得信赖的NSImageView。 NSImageView刷新的方式比IKImageView好得多-IKImageView可以无缓冲地绘制整个背景,然后无缓冲地绘制图像。 NSImageView只是将整个操作作为一个操作完成。



IKMANAGEVIEW再也不会弄死我的门了。


I have one large IKImageView in my window. The image changes when the user clicks something. When the change happens, the IKImageView first draws the background colour, then draws the image over the top of it, which looks pretty crappy. Is there a way to get it to switch images more smoothly?

It also contains garbage when the window loads for a split second until the image loads - is this related?

解决方案

Problem solved - stop using IKImageView and never bother with it again because it is poorly documented and buggy. Back to the trusty NSImageView. NSImageView refreshes in a much better way than IKImageView - IKImageView draws the whole background unbuffered, then draws the image unbuffered. NSImageView just does the whole thing as one operation.

NEVER DARKEN MY DOOR AGAIN, IKIMAGEVIEW.

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

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