繁体   English   中英

如何使用Appcelerator Titan Mobile在图像上画线

[英]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?
});

所以,我应该如何画一个像素?

抱歉,我没有阅读完整的问题。

试试This ,这是Titanium Appcelerator模块,绝对免费。它也有一个简单的例子。 您可以轻松使用。

再次抱歉。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM