Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.42 kb
import hxGD.Image;
class Test1 {
public static function main() {
hxGD.Image.defaultBackgroundColor = new hxGD.Color(255,255,255);
var i = new hxGD.Image(100, 100, new hxGD.Color(0,0,0), true);
i.graphics.line(0,0,100,100);
if (neko.Web.isModNeko) {
neko.Web.setHeader("Content-Type","image/png");
neko.Lib.print(i.getImageData(FileType.Png));
}
else
i.saveImage("test.jpg",FileType.Jpeg(90));
}
}
Jump to Line
Something went wrong with that request. Please try again.