[英]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?
});
所以,我應該如何畫一個像素?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.