Hi, I have modified pnglet for Titanium. Here is modified code.
I have added this method to generate Ti.Blob from output string:
Pnglet.prototype.getBlob = function() { var temp = Ti.Filesystem.createTempFile(); temp.write(this._output()); return temp.read(); };Here is my example code:
var TiPnglet = require('vendor/tipnglet'); var p = new TiPnglet(800,200,8); var green = p.color( 0,255, 0); p.line(green, 2,2, 32,16, 16,32, 4,7); return p.getBlob();But the image view stay empty. Has anybody experiences with pnglet? It is very old, but I want avoid canvas (webview)
Best regards
Rainer