lmf12 / glpaintview Goto Github PK
View Code? Open in Web Editor NEW基于 OpenGL ES 实现的绘画板。
基于 OpenGL ES 实现的绘画板。
使用模拟器跑,绘画时候好卡啊
含有glpaintview的vc1 present到另一个有glpaintview的vc2,vc2返回vc1时候用一个block重设vc1里的笔刷尺寸。
这时候vc1里的画板继续画,笔刷宽度和透明度都变得不正常,但是撤销 再重做后, 又变回block设定的正常尺寸。十分不解。
前几月问您类似问题返回后不能画,您回复过我是图形上下文,那个问题好了,现在又不懂了。。。
[email protected]给您邮箱发了附件。感激不尽
补充:只要从vc2回来,即使不用block传值,例如在vc1的viewwillappear里设随机brushsize,也会引起vc1的画板异常。
非常感谢作者的分享,非常稀少的openGLES demo。
1.从代码来看,橡皮功能是把画笔颜色设置成背景色,我的画板有需求需要画板背景。这种情况需要把glpaintview设置成透明色,如此该如何完成橡皮功能呢。
2.我有个蓝牙硬件画板,保存着离线笔记的point,可否不打开GLPaintView,直接代码生成图片呢。小白望指教。非常感谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.