如何提高笔刷的速度

如何提高笔刷的速度

本文介绍了C#如何提高笔刷的速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用pictureBox和Bitmap,放在表格上.
首先,我在位图上绘画,并使用图片的属性:image,直接渲染我绘制的内容.因为我的笔需要Alpha值,所以我使用GDI +来解决它.随着使用GDI +的出现,我发现笔刷的速度非常缓慢.在测试过程中,我知道需要计算每个用alpha绘制的内容的原因,并且我还发现我失去了参加mousemove事件的机会,这可能会导致我丢失点.我不知道如何改进它,如果您有什么想法,请尽快告诉我.

I use a pictureBox and Bitmap,drop on form.
First I paint on my bitmap,and using picture''s attribute :image, direct render what I have painted. Because my pen need Alpha value,so I use GDI+ to solve it. As the occurrence of using GDI+ ,I found the speed of my brush so slowly. During test ,I know the reason that each what I have painted with alpha needs to calculate,and I alse found I lost the chance to enter into mousemove event which may leads I lost dot. I don''t know how to improve it,if you have some idea,please let me know soon.

推荐答案


这篇关于C#如何提高笔刷的速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 06:15