0
我想为Galaxy Tab制作应用程序,它允许我绘制图片...类似于MS Paint的东西(不要问我为什么:))所以第一步是:如何使用appcelerator钛手机在图像上绘制线
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?
});
那么,我该如何画一个像素?
对不起,但你到底在哪里绘制imageView像素?我认为这个例子可以用作拖放式的例子,我的问题是关于如何在我触摸它时在图像视图上绘制像素...但是,无论如何,谢谢。 – Alex