简体   繁体   English

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

[英]How to draw a line on image using appcelerator titanium mobile

I'm want to make an application for Galaxy Tab, that allows me to draw pictures... Something similar to MS Paint (don't ask my why :)) so the first steps are: 我想为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?
});

So, how should i draw a pixel? 所以,我应该如何画一个像素?

sorry I have not read you full Question. 抱歉,我没有阅读完整的问题。

try This , this is a Titanium Appcelerator Module and this is absoultely free It have also a easy example. 试试This ,这是Titanium Appcelerator模块,绝对免费。它也有一个简单的例子。 You can use easy. 您可以轻松使用。

Again Really Sorry.. 再次抱歉。

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

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