如何从矩形中清除图像? [英] How do I can clear the image from rectangle ?

查看:84
本文介绍了如何从矩形中清除图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Rect类型的矩形中清除图像。



我尝试过:



我尝试使用Invalidate()它正在工作但闪烁问题就在那里。

How do I can clear the Image from Rectangle of type Rect.

What I have tried:

I tried using Invalidate() it is working but flickering Issue is there.

推荐答案

很不清楚,因为你还没有提供显示图像。



您必须从图像显示的控件中删除图像引用(或指针),然后使其无效。



或设置默认图像...
Very unclear, because you havent provided how the image is displayed.

You must remove the image reference (or pointer) from the control which the image shows and than invalidate.

Or set a default image...


这篇关于如何从矩形中清除图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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