簡體   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