摘要: #!/usr/bin/pythonimport sysimport Imagedef main(): if len(sys.argv) < 2: filename = '1.bmp' else: filename = sys.argv[1] im = Image.open(filename) im = im.convert('RGBA') x, y = im.size pixdata = im.load() for j in xrange(y): for i in xrange(x): i... 阅读全文
posted @ 2013-04-11 23:42 aboys 阅读(816) 评论(0) 推荐(0) 编辑