简体   繁体   中英

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:

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. You can use easy.

Again Really Sorry..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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