[英]How to draw a line on image using appcelerator titanium mobile
我想为Galaxy Tab创建一个应用程序,该应用程序允许我绘制图片……类似于MS Paint(不要问我为什么:)),因此第一步是:
win = Ti.UI.createWindow({
backgroundColor: 'black',
exitOnClose: true
});
image = Ti.UI.createImageView({
width: 200,
height: 200
});
image.addEventListener('touchmove', function(e){
//And here I need somehow to draw a pixel on image at e.x, e.y coordinates
// How can i do it?
});
所以,我应该如何画一个像素?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.