从画布上删除内容 [英] Erasing the content from canvas

查看:129
本文介绍了从画布上删除内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在开发地铁风格的油漆应用程序.我想应用橡皮擦功能.那么,如何像在MS Paint中一样,做一个这样的工具来从画布中擦除内容呢?

我不想清除整个画布,无论我单击或拖动指针的位置如何,都应该删除指针移动的路径.

Hi, I am developing a paint like application in metro style. I want to apply a eraser functionality. So how can I make such a tool for erasing the content from canvas like we do in MS paint ?

I don''t want to clear whole canvas, wherever I click or drag the pointer, the path traveled by the pointer should be erased.

推荐答案

我没有经验在Metro中,但是在光栅环境中进行擦除只不过是使用背景色绘画.
I have no experience in metro, but erasing in a raster environment is nothing more than painting with background color.


这篇关于从画布上删除内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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